Expand force

Post

Posted
Rating:
#1 (In Topic #567)
Trainee
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.
<IMG src="https://ibin.co/5pzCJilbt2ms.png"> </IMG>
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.
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 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.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Guru
cogier is in the usergroup ‘Guru’
Do you mean like this?

<IMG src="https://www.cogier.com/gambas/expandsome.png"> </IMG>
Online now: No Back to the top

Post

Posted
Rating:
#4
Trainee
Yes I do! although as long as the buttons expand in all directions. The times on the left should stay the same size
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Guru
cogier is in the usergroup ‘Guru’

squidink7 said

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.
Online now: No Back to the top

Post

Posted
Rating:
#6
Trainee
 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.
Online now: No Back to the top

Post

Posted
Rating:
#7
Guru
BruceSteers is in the usergroup ‘Guru’

squidink7 said

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 :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.