Expand force

Post your Gambas programming questions here.
Post Reply
squidink7
Posts: 6
Joined: Saturday 16th January 2021 11:31pm

Expand force

Post by squidink7 » Saturday 30th January 2021 2:45am

Hey there, I was wondering if it was possible to set how "powerful" an expand property is. I'm making a simple timetable application which resizes everything to the window size but I noticed that the "recess" and "lunch" sections were just as large as the other sections which contain subject information and imo should be larger.
Image
I've lined everything up in hboxes and set them all to expand so when the window gets resized they will grow/shrink with it. Is there a way to preserve this while also making the recess and lunch lines comparatively smaller? Thanks.

User avatar
BruceSteers
Posts: 401
Joined: Thursday 23rd July 2020 5:20pm

Re: Expand force

Post by BruceSteers » Saturday 30th January 2021 3:53am

you can't change expand settings unfortunately.

to make the specific lines a different size i'd simply change the font size for those lines.
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
cogier
Site Admin
Posts: 648
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Expand force

Post by cogier » Saturday 30th January 2021 12:14pm

Do you mean like this?

Image

squidink7
Posts: 6
Joined: Saturday 16th January 2021 11:31pm

Re: Expand force

Post by squidink7 » Sunday 31st January 2021 12:35am

Yes I do! although as long as the buttons expand in all directions. The times on the left should stay the same size

User avatar
cogier
Site Admin
Posts: 648
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Expand force

Post by cogier » Sunday 31st January 2021 10:38am

squidink7 wrote:
Sunday 31st January 2021 12:35am
Yes I do! although as long as the buttons expand in all directions. The times on the left should stay the same size
Can you post the form or the program, so I can see what there is to do.

squidink7
Posts: 6
Joined: Saturday 16th January 2021 11:31pm

Re: Expand force

Post by squidink7 » Monday 08th February 2021 9:09am

Thanks for the help everyone, sorry I didn't respond sooner got a lot of stuff going on rn. I've come across a solution (ish) which is just to hide the elements when the form gets too small.

User avatar
BruceSteers
Posts: 401
Joined: Thursday 23rd July 2020 5:20pm

Re: Expand force

Post by BruceSteers » Monday 08th February 2021 1:40pm

squidink7 wrote:
Monday 08th February 2021 9:09am
Thanks for the help everyone, sorry I didn't respond sooner got a lot of stuff going on rn. I've come across a solution (ish) which is just to hide the elements when the form gets too small.
the development branch of gambas now has Form.MinWidth and Form.MinHeight so you can now stop the form getting too small :)
Wishing well
Bruce

If at first you don't succeed , try it differently.

Post Reply