to differentiate between runmode and browsemode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
selvabits
Posts: 13
Joined: Tue Jul 17, 2007 4:30 pm

to differentiate between runmode and browsemode

Post by selvabits »

can anyone please tell me how to differentiate between runmode and browsemode using script itself ........
i dont want certain parts of my on openstack to be executed while it is in browsemode ... so i want to know if it is runmode or browsemode and then execute it only if it is in runmode
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

Hola selvabits,

to make it clear:
run mode = browse (NOT edit) mode
edit mode = edit! mode

Code: Select all

...
if the tool = "browse tool" then
  ## you are in browse mode
  ## do your browse thingie
else
  ## in this case "THE TOOL" = "pointer tool"
  ## you are in edit mode
  ## do your edit thingie
end if
...

Best from germanski

Klaus
Post Reply