Message to detect BROWSE/EDITOR switching?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Message to detect BROWSE/EDITOR switching?
Hello,
I want to create a message to perform some operations when I switch my program from editing (design) and browse (run). In fact I need to eliminate windows borders, set background, move window, etc... for testing (running) but I want to set normal stack properties when I switch to EDITING.
Which event can I use to detect browse/editor status?
Thank you for your help!
I want to create a message to perform some operations when I switch my program from editing (design) and browse (run). In fact I need to eliminate windows borders, set background, move window, etc... for testing (running) but I want to set normal stack properties when I switch to EDITING.
Which event can I use to detect browse/editor status?
Thank you for your help!
You're in luck - there is the "newTool" message you can handle in this case:
SparkOut
HTHthe RunRev dictionary wrote:Examples:
on newTool newTool
if newTool is "Browse" then show stack "Editing Tools"
else hide stack "Editing Tools"
end newTool
Handle the newTool message if you want to change something when a tool is chosen. For example, you might want to show a particular palette window only with the Browse tool.
SparkOut
Hi ale870
Best
Klaus
Maybe the name of the parameter in SparkOuts script is a bit inconvenient (same as the handlers name!), try this one:ale870 wrote:I tried it (on windows) and does not work...
Code: Select all
on newTool theTool
if theTool is "Browse" then
show stack "Editing Tools"
else
hide stack "Editing Tools"
end if
end newTool
Klaus
Well, I just copied and pasted the script out of the docs.
Anyway, I was sure that this had cropped up before somewhere, so I went hunting. Seems we all have a poor memory sometimes
http://forums.runrev.com/phpBB2/viewtop ... =9681#9681
The answer is that it does need to be put in a frontscript to be intercepted.
Anyway, I was sure that this had cropped up before somewhere, so I went hunting. Seems we all have a poor memory sometimes

http://forums.runrev.com/phpBB2/viewtop ... =9681#9681
The answer is that it does need to be put in a frontscript to be intercepted.
It's incredible! I have the same app and in my doc there is only Mac icon!!!Klaus wrote:I am using Rev 4, see the screenshot of the docs, all platforms supported:
[/img]
(tomorrow I will post a screenshot).
I have RunRev enterprise. It your screenshot of enterprise version or studio?
(tomorrow I will try to put the handler in the front-script).
Thank you!