Stack Style Property
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Stack Style Property
I read in the manual that windows in a stack with specific style property are always opened in that style. Trouble is, I don;t see a setting in the stack property inspector to set the style. Does that have to be done through a script?
Pete
Pete
Stack Style Property
Hi,
Yes, there is not a style setting in the stack property inspector
But you can set the style of a stack by script
The style of a stack determines its behavior and is one of the following:
* topLevel: editable window
* modeless: modeless dialog box, cannot be edited, can use only Browse tool
* modal: modal dialog box, can use only Browse tool
* palette: palette window, cannot be resized or edited, can use only Browse tool
It is a good idea have a btn to change the style (if the style = modal you can't access to the msg box and script editor)
All the best
Jean-Marc
Yes, there is not a style setting in the stack property inspector
But you can set the style of a stack by script
Code: Select all
set the style of stack MyStack to MyStyle
* topLevel: editable window
* modeless: modeless dialog box, cannot be edited, can use only Browse tool
* modal: modal dialog box, can use only Browse tool
* palette: palette window, cannot be resized or edited, can use only Browse tool
It is a good idea have a btn to change the style (if the style = modal you can't access to the msg box and script editor)
All the best
Jean-Marc
-
- VIP Livecode Opensource Backer
- Posts: 10050
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
The style property for stacks governs the default behavior of that stack when it's opened using the "open" or "go" commands.
But keep in mind that the values used for the style property ("toplevel", "modal", "modeless", "palette") are also commands themselves, which override the default behavior to open the stack in the specified mode.
For example, if you have a stack whose style is "palette", using this would open the stack as a palette:
open stack "MyStack"
But using this would open it as topLevel:
toplevel stack "MyStack"
But keep in mind that the values used for the style property ("toplevel", "modal", "modeless", "palette") are also commands themselves, which override the default behavior to open the stack in the specified mode.
For example, if you have a stack whose style is "palette", using this would open the stack as a palette:
open stack "MyStack"
But using this would open it as topLevel:
toplevel stack "MyStack"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn