How do I resize components during form resizing?

You need some new stunning features ? Tell us here.
storck
User
User
Posts: 83
Joined: Sat Oct 18, 2003 4:56 pm
Location: Sweden

How do I resize components during form resizing?

Post 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
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: How do I resize components during form resizing?

Post 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
storck
User
User
Posts: 83
Joined: Sat Oct 18, 2003 4:56 pm
Location: Sweden

Re: How do I resize components during form resizing?

Post by storck »

Keya wrote: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 for whatever reason
http://purebasic.fr/english/viewtopic.php?f=13&t=63529
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
russellm72
User
User
Posts: 17
Joined: Wed Jul 13, 2022 2:04 pm

Re: How do I resize components during form resizing?

Post by russellm72 »

Keya wrote: Wed Oct 21, 2015 11:00 am 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
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.
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: How do I resize components during form resizing?

Post 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
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: How do I resize components during form resizing?

Post 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.
russellm72
User
User
Posts: 17
Joined: Wed Jul 13, 2022 2:04 pm

Re: How do I resize components during form resizing?

Post 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!
Post Reply