Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngHBOX - 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.
Let me explain to you this one by one example.

A)WITHOUT HBOX/VBOX
In my example, i want to create one small notepad application.

myhbox.jpg

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.

myhbox1.jpg


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
Last update : 07/11/2020 @ 21:53
Category : HBOX
Page read 1909 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^