AW: open substack flickering despite lockscreen

Phil Jimmieson phil at liverpool.ac.uk
Thu Feb 4 09:12:55 EST 2010


Hi Tiemo,
Add a preopenstack handler to the stack that you want to display modally, and in this handler, set the location you want the stack to occupy.
When the stack opens up, before you see it it positions itself in the location you supplied, so:

on preopenstack
  global tLocX,tLocY  --or some other way of passing the location you want - a custom property of the stack perhaps?
  set the left of stack "lizenzinfo" to tLocX
  set the top of stack "lizenzinfo" to tLocY 
end preopenstack


then when you use the command


    modal stack "lizenzinfo" 


your stack will be displayed at tLocX and tLocY


On 4 Feb 2010, at 14:01, Klaus Major wrote:

> Hi Tiemo,
> 
>> Hi Klaus,
>> 
>> there is a saying "don't halloo, before you are out of the wood"
> 
> ??? I only understand "station" :-D
> 
>> When using just:
>> 
>>  set the left of stack "lizenzinfo" to tLocX
>>  set the top of stack "lizenzinfo" to tLocY
>>  modal stack "lizenzinfo"
>> 
>> the setting of the loc seems to be ineffective, The stack just opens at the
>> default center position. When opening the stack, before setting the loc, as
>> in my first approach, the positioning works, but the flickering.
>> Any idea what's wrong?
> 
> Oops, my fault!
> I thought this behaviour only applies to the "Ask" and "Answer" dialogs, but a look into the docs proved me wrong.
> This is obviously managed by the engine.
> 
> No other idea, sorry.
> 
>> Thanks
>> Tiemo
> 
> Best
> 
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

--
Phil Jimmieson  phil at liverpool.ac.uk  (UK) 0151 795 4236  (Mobile) 07976 983164
Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
Liverpool L69 3BX              http://www.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this ointment.







More information about the use-livecode mailing list