Doing my own geometry
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Feb 7 14:04:44 EST 2008
Hi Steve,
Why do you need a button to resize a window? Why can't you use OSX's
own little handle in the bottom-right of each resizable window?
Everybody who uses the geometry manager is bound to run into its
limits some day, losing a lot of time fixing it or even having to
completely recreate one's work. I'd use a script that responds to the
resizeStack message rather than the geometry manager.
Best regards,
Mark Schonewille
--
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Quickly extract data from your HyperCard stacks with DIFfersifier.
http://differsifier.economy-x-talk.com
Op 7-feb-2008, om 18:53 heeft Steve Checkley het volgende geschreven:
> Hi Jacque,
>
> Unfortunately, I've deleted the original handlers and gone back to
> using Rev's own geometry manager.
>
> I'd placed a button in the bottom right of the window and turned on
> live resizing.
>
> In pseudocode, the button's script ran along the lines of:
>
> on mouseDown
> repeat while the mouse is down
> set the rect of this stack in relation to the mouseLoc
> (fixing min and max rects)
> end repeat
> end mouseDown
>
> on resizeStack
> lock screen
> -- geometry script in here
> unlock screen
> end resizeStack
>
> I have a feeling that I may still have been relying upon rev to
> actually handle the geometry and was calling revUpdateGeometry but
> I can't remember now. Mind you, when I was playing around, I didn't
> have a lot on the card, so maybe not. My brain's a bit fried at the
> moment, I'm afraid!
>
> Hmmm... I might have another look at this to see whether moving
> objects directly in code works quicker that I remember.
>
> Thanks for pointing me in possibly the right direction!
>
>
>
> Steve
More information about the use-livecode
mailing list