Jump to content
Sign in to follow this  

Center Text in A Combo Control

Recommended Posts


Not sure but is it possible to center text in a combo?

Share this post

Link to post
Share on other sites

I tried this, but didn't work =/

#include <GUIConstants.au3>

$GUI = GUICreate("GUI", 200, 40, -1, -1)
$Combo = GUICtrlCreateCombo("", 10, 10, 180, 20, BitOr($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL, $SS_CENTER))

GUICtrlSetData($Combo, "Item1|Item2|Item3")

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post

Link to post
Share on other sites

This has been asked before, I don't think you can... :whistle:


Found the thread, and the link I found on the net about it...


Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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.