Chipp Walters wrote:

Hi Alex,

My bad, I was 'reading into' something which wasn't there.

Though I wonder, why do you need a graphic "theFrame", why not just scale the image directly? I'm probably missing something here.

I do something similar, thought not the same, in my plugin, "altImgViewer", I allow users to 'double-click' an image and display it as large as it can be displayed inside a new window. I use the previously mentioned function to get the image size, then check it against the windowBoundingRect, then scale the window and the image within the window, set the filename to the image and everything works fine.

Seems redundant to use a 'frame' unless you're using it for visual purposes.

My frame sits below a row of buttons for navigating between the various jpgs in a folder, and above a status textArea, with an optional additional EXIF info textArea on one side - so I'd have to do a bit of calculation between the various controls surrounding it. It was easier to just have some object there, let GM resize that for me, then use its size.

I *should* use it for visual purposes as well - but I'm less visually oriented than many (most?) of the people on this list; I'm much more of a programmer than a graphics / GUI person, so the visual niceties usually wait until the end (i.e. they get cut when I pass my deadline). I've even been known to do the documentation before the graphic tidy-up :-)

--
Alex Tweedly       http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 04/06/2005

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to