Jump to content
Sign in to follow this  
yawoo

Text Alignment

Recommended Posts

yawoo

I have created a GUI myself, but the label and the listbox in the same line are not alignment in vertical level. Sample are shown below. Is that any method to do so?

Share this post


Link to post
Share on other sites
BigDaddyO

I have created a GUI myself, but the label and the listbox in the same line are not alignment in vertical level. Sample are shown below. Is that any method to do so?

<{POST_SNAPBACK}>

When you say listbox, I am assuming you mean Combobox by looking at the screenshot.

I normally position my labels with the top of the control 3 lower than the ComboBox, that lines them up nicely.


Share this post


Link to post
Share on other sites
yawoo

When you say listbox, I am assuming you mean Combobox by looking at the screenshot.

I normally position my labels with the top of the control 3 lower than the ComboBox, that lines them up nicely.

<{POST_SNAPBACK}>

Yes! That's combobox.

You means the code something like below?

GuiCtrlCreateLabel("Video codec:", $x, $y+3, $w)

GuiCtrlCreatecombo("", $x+$w, $y, $w1, 200, $CBS_DROPDOWNLIST)

Share this post


Link to post
Share on other sites
BigDaddyO

GuiCtrlCreateLabel("Label2", 10, 63, 40, 20)

GuiCtrlCreateCombo("Combo1", 60, 60, 100, 20)


Share this post


Link to post
Share on other sites
yawoo

GuiCtrlCreateLabel("Label2", 10, 63, 40, 20)

GuiCtrlCreateCombo("Combo1", 60, 60, 100, 20)

<{POST_SNAPBACK}>

Thanks a lot! I got your idea.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.