best resize stack handling?

Ralph DiMola rdimola at evergreeninfo.net
Fri Aug 29 19:26:30 EDT 2014


I have never needed to call my resize routines more than once. Don't know
why you are having a problem. Try turning off messages and the change the
screen size and the turn messages backup on and run you routines from the
message box and see if it take 2 calls. If so look into your handlers. Also
I had some problems in my resize handlers because I had a wait inside one of
the handlers. I contacted support and Mark told me that any waits of any
form inside a resize stack message path will cause problems. See if this
might be your issue. This behavior started in 6.6...

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Tiemo Hollmann TB
Sent: Friday, August 29, 2014 5:37 AM
To: 'How to use LiveCode'
Subject: best resize stack handling?

Hello,

 

Using LC 6.6.2 on Win 7

I am having a dynamic GUI layout, where I adapt sizes and positions of all
GUI elements on resizeStack.

In general it works as expected. Only when resizing the stack window very
fast, or using the maximize/minimize window button, my resizing handler
doesn't catches up and messes the size of some of the objects. With a double
call of my resize handler I found a solution, which works fine for me, but
it doesn't looks very sophisticated:

 

on resizeStack pNewW,pNewH,pOldW,pOldH

      myResizeStack pNewW,pNewH,pOldW,pOldH

      wait 0 with messages

      myResizeStack pNewW,pNewH,pOldW,pOldH

      pass resizeStack

end resizeStack

 

What are your experiences and technics for resizing?

Thanks

Tiemo

 

 

 

 

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list