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?
Resizing gadgets created at run time?
- tinman
- 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?
+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).
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)
(WinXPhSP3 PB5.20b14)
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Resizing gadgets created at run time?
+ 1 (I still roll my own re-sizing)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- OnErrorGotoTrashcan
- New User
- Posts: 4
- Joined: Wed Dec 04, 2013 11:44 am
Re: Resizing gadgets created at run time?
+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)
And what happened?
It committed suicide. (Marvin)