Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
HBOX - Why to use Hbox/Vbox
Why we need tu use Hbox /Vbox?
My first answer is simply to adaptate my application to all screen resolutions. One form, 5buttons, One textarea to write text, and that's it. But, when another linux user will download this app, buttons will be very small, and window small. B) With Hbox/Vbox I see my application and i will divide in 2 parts : 1rst is menu ,5 buttons will be inside Horizontal Box called Hbox. (violet color on picture) Every button will be expanded to take full place inside this box. EXPAND PROPERTY will be TRUE for every button. 2nd, menu will be on textarea. I will use Vertical Box Vbox .(green box on picture) well, i will add this code inside resize event of my Form : Public Sub Form_Resize() VBox1.x = 0 VBox1.Y = 0 VBox1.Width = Me.Width VBox1.Height = Me.Height End Result? Now my application has good view on all screen resolutions, and if i resize my form, i will have the best view all the time. Thanks for your attention. Creation date : 07/11/2020 @ 21:53 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|