Location of dialog box

Ken Ray kray at sonsothunder.com
Thu Nov 17 20:11:54 EST 2011


On Nov 17, 2011, at 10:05 AM, James Hurley wrote:

> Can one set the location of the popup dialog box? In my application, it obscures the object it is addressing. 

Jim, the only way to set the locaton of a modal dialog box (that I'm aware of) is changing the location in the preOpenStack of the dialog stack you're opening:

-- Dialog stack "MyDialog"
on preOpenCard
  set the loc of this stack to 100,100
end preOpenCard

-- Calling stack
on mouseUp
  modal "MyDialog"
end mouseUp

The other possibility is to open a dialog box as modeless, which would let you drag it around…


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	




More information about the use-livecode mailing list