Stack jumps from top level to palette

Jan Schenkel janschenkel at yahoo.com
Sun Jul 6 04:45:00 EDT 2003


--- Jim Hurley <jhurley at infostations.com> wrote:
> 
> Jan,
> 
> I was about to reply that I have been resetting the
> mode to toplevel 
> every time it jumped to palette mode, perhaps a
> couple of dozen 
> times--every time I changed cards. I was making the
> change from the 
> pop up contextual sensitive menu
> (command-control-shift-click on the 
> Mac.)
> 
> But I thought I would first follow your advice
> literally and so I set 
> the style to toplevel in the message box. Eureka!
> This time it stuck. 
> It turns out that using the menu palette is
> ephemeral. It only 
> changes the mode temporarily. The mode reverts back
> to palette after 
> command 3 to go to the next card.
> 
> Very odd.
> 
> Thank you Jan.
> 
> Jim
> 

Hi Jim,

It's not abnormal if you track down how that popup
menu actually works : it executes a 'toplevel' command
(or 'modal' or 'modeless' or 'palette')

>From the Transcript dictionary entry for 'go' :
----
Important!  The style of the stack, if it is anything
other than &#147;topLevel&#148;, overrides any mode
you specify in a go command. For example, if you open
a stack using the statement go stack "Some Stack" as
modeless, and the style of &#147;Some Stack&#148; is
set to &#147;palette&#148;, it opens as a palette
rather than a modeless dialog box, ignoring the mode
you specified.
----

Hope this helped,

Jan Schenkel.


=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


More information about the use-livecode mailing list