Opening a stack changes it's set rect
paul at researchware.com
Fri May 24 15:53:28 EDT 2019
Thank you Mark!
On 5/24/2019 2:14 PM, Mark Waddingham via use-livecode wrote:
> On 2019-05-24 18:08, Paul Dupuis via use-livecode wrote:
>> I discovered today that opening a stack changes its set rect (at least
>> under Windows 10 in LC904/905rc1 when opening a stack invisible
>> See this little gem: https://quality.livecode.com/show_bug.cgi?id=22097
>> Not a problem is you are just popping up windows and then setting
>> their positions, but if, for some reason, you want to precisely place
>> windows (like we do) and then open them, this is a pain in the rear!
>> Opening a window/stack should not change its rect!
> I'd point out here that the stack's *rect* is not being changed...
> It's effective rect is changing - this is a very different thing (the
> effective rect is only calculable after the system window object has
> been created).
> Given that the stack is being opened as invisible, then surely you can
> just open it invisible, then check its effective rect?
> Warmest Regards,
> P.S. A stack keeps its system window when closed unless the
> 'destroyWindow' property is set; if the latter is set to true, then
> closing the stack will cause its system window to be destroyed.
More information about the use-livecode