Page 1 of 1
How do I resize components during form resizing?
Posted: Wed Oct 21, 2015 10:53 am
by storck
Hi!
I have been away from Pure Basic for quite some time. I am not sure if this has been asked before or if it is in the right section. I have a form with a panel. It is locked left, right, top and bottom. When I resize the form with left mouse drag the panel size is not changed until i release the mouse button. That doesn't look too good IMHO. I am not used to this behavior from using delphi, lazarus, visual studio community, wxwidgets or pretty much anything else. I guess I must be doing something wrong. Is there a way around this? Any help would be most welcome.
// Storck
Re: How do I resize components during form resizing?
Posted: Wed Oct 21, 2015 11:00 am
by Keya
you need to switch it to BindEvent, which is easy to do but unfortunately the IDE doesnt do it that way automatically in the code it generates
http://purebasic.fr/english/viewtopic.php?f=13&t=63529
Re: How do I resize components during form resizing?
Posted: Wed Oct 21, 2015 11:07 am
by storck
Thank you so much. Would be nice if the designer used this by default. It would also be useful if the component locks where active at design time. In the future maybe. Anyways, once again thank you for helping me out.
// Storck
Re: How do I resize components during form resizing?
Posted: Wed Jul 13, 2022 2:17 pm
by russellm72
The link posted seems to be dead now. I'm also interested in the answer to this question. Is there a new version of the link that works? Thx.
Re: How do I resize components during form resizing?
Posted: Wed Jul 13, 2022 3:33 pm
by Caronte3D
storck wrote: Wed Oct 21, 2015 11:07 am
Would be nice if the designer used this by default...
IceDesigner can handle this automatically (if do you want).
It isn't free, but is cheap:
https://www.purebasic.fr/english/viewtopic.php?t=74711
Re: How do I resize components during form resizing?
Posted: Wed Jul 13, 2022 3:33 pm
by Shardik
russellm72 wrote: Wed Jul 13, 2022 2:17 pm
The link posted seems to be dead now.
The link is not dead. You have to copy the link, paste it into the address line of your browser and change "http://" to "https://". When directly clicking onto the link my Firefox indeed reports "Not Found" because http links are meanwhile considered dangerous by most of the current browsers.
Re: How do I resize components during form resizing?
Posted: Wed Jul 13, 2022 3:49 pm
by russellm72
Shardik wrote: Wed Jul 13, 2022 3:33 pm
russellm72 wrote: Wed Jul 13, 2022 2:17 pm
The link posted seems to be dead now.
The link is not dead. You have to copy the link, paste it into the address line of your browser and change "http://" to "https://". When directly clicking onto the link my Firefox indeed reports "Not Found" because http links are meanwhile considered dangerous by most of the current browsers.
That worked. Thank you!