Reply to topic  [ 5 posts ] 
fullscreen without toolbar and rulers 
Author Message

Joined: 2007-04-12 14:59:36
Posts: 229
I would prefer to work in full screen without toolbar and rulers and get them back in normal view.

I tried this:
Code:
Set Toolbar Shown false
Set Rulers Shown false
Enter Full Screen


to which I wanted to add conditions for showing / hiding in the right moment. But the 3 lines don't properly work as they stand. What did I do wrong?


2012-08-27 15:27:42
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
js wrote:
What did I do wrong?

On the surface, you didn't do anything wrong. However, the reason the Toolbar shows in Full Screen mode is because Apple always shows it whenever you switch to full screen no matter what (you can observer Mail.app has the same behavior). So, the first attempt at fixing this looks like this:
Code:
Set Rulers Shown false
Enter Full Screen
Set Toolbar Shown false

Unfortunately that doesn't work either, because of Apple's full screen animation. Apparently the toolbar state is not changed immediately when the command is invoked, but at some transitionary point during the animation. So we need to add a delay, eg:
Code:
Set Rulers Shown false
Enter Full Screen
Sleep 1
Set Toolbar Shown false

That works for me, though you might need to adjust the one second delay depending.


2012-08-27 16:10:40
Profile WWW

Joined: 2007-04-12 14:59:36
Posts: 229
Thank you. This (mostly) works.

Speaking of the toolbar alone: How can one test if the Toolbar is visible or not, in order to have a macro work as a button that puts it either on or off?
I can't find this in the Macro Reference.


2012-08-28 06:05:59
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
There's no special macro commands for checking the toolbar, but you can just have a peek to see if the menu is checkmarked or not:
Code:
$isVisible = Menu State ":View:Toolbar:Show Toolbar"
If $isVisible
   Prompt "Toolbar is currently visible."
Else
   Prompt "No toolbar here!"
End


2012-08-29 14:39:34
Profile WWW

Joined: 2007-04-12 14:59:36
Posts: 229
Thank you. This is very helpful.


2012-08-30 01:30:41
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software