Geometry movement lag - Never mind.

SteveTheWhelk steve at theworcestersource.com
Sat Jan 10 16:34:55 EST 2009


Hi Bill,

Something along the way probably triggered the Geometry Manager to recache
itself for that card. You can prompt it to do this by executing a
"revCacheGeomtry" command from the message box. Sometimes, I find that it
doesn't update but after pulling the underlying code apart to see how it
works, "revCacheGeomtry true" seems to fix it.

I was one a staunch supporter of the Geometry Manager but like so many that
have advised me in the past, I tend to roll my own now, especially for
complicated window layouts.

Steve
www.theworcestersource.com



Bill Vlahos wrote:
> 
> OK. So I must have been hallucinating because I redid the Geometry  
> Manager scaling and now it works as expected so I don't need my  
> resizeStack handler.
> 
> Bill
> 
> On Jan 10, 2009, at 12:04 PM, Bill Vlahos wrote:
> 
>> I have a row of icons and have been able to use the Geometry Manager  
>> to spread them out as the window is resized. However, I have another  
>> button and graphic that need to move and be resized to span the  
>> width of a subgroup of the icons.
>>
>> The Geometry Mangers doesn't seem to be able to do this. It appears  
>> to move the object so the right sides align but doesn't resize it  
>> even though it is supposed to scale it with anchors of the two  
>> outermost buttons. It acts as thought it is positioning instead of  
>> scaling.
>>
>> To get around this I put an on resizeStack handler that calculates  
>> the rects, lefts, and rights of various objects and then sets the  
>> rects of the buttons and lines.
>>
>> This works but while the action of the objects being moved via the  
>> Geometry Manager is smooth, the action of the objects my handler  
>> does is jerky. Worse than just being jerky it sometimes doesn't get  
>> the final position correct.
>>
>> Here is the code in the stack script:
>> on resizeStack
>>   set the itemDelimiter to comma
>>   put the rect of graphic "Line" into tRectLine
>>   put the left of button "Doctors" into item 1 of tRectLine
>>   put the right of button "History" into item 3 of tRectLine
>>   set the rect of graphic "Line" to tRectLine
>>   pass resizeStack
>> end resizeStack
>>
>> Bill Vlahos
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Geometry-movement-lag-tp21392060p21393098.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the Use-livecode mailing list