Resizing gadgets created at run time?

You need some new stunning features ? Tell us here.
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Resizing gadgets created at run time?

Post by Justin »

When you set a lock property on a gadget the designer handles the window size event and you don't have access to it at run time so you can't resize a gadget created at runtime.
How about putting a placeholder in the designer for a callback function that will be called after the designer has done its work in the resize event?
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Re: Resizing gadgets created at run time?

Post by tinman »

+1 from me :)

Not just for being able to further resize, but any manipulation that needs to be done after a resize event has taken place (such as redrawing the contents of a CanvasGadget to fill the resized dimensions).
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Resizing gadgets created at run time?

Post by IdeasVacuum »

+ 1 (I still roll my own re-sizing)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
OnErrorGotoTrashcan
New User
New User
Posts: 4
Joined: Wed Dec 04, 2013 11:44 am

Re: Resizing gadgets created at run time?

Post by OnErrorGotoTrashcan »

+1
I got very bored and depressed, so I went and plugged myself in to its external computer feed. I talked to the computer at great length and explained my view of the Universe to it.
And what happened?
It committed suicide. (Marvin)
Post Reply