jennico Posted April 6, 2009 Share Posted April 6, 2009 $ES_RIGHT doesn't work, how to get combobox items right aligned ? thx j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Authenticity Posted April 6, 2009 Share Posted April 6, 2009 You mean $WS_EX_RIGHT. Link to comment Share on other sites More sharing options...
jennico Posted April 7, 2009 Author Share Posted April 7, 2009 dude, where did you find that $WS_EX_RIGHT ? but it does not really solve the problem, since the dropdown handle is to the left now. no possibility to just right align the text ? j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
jennico Posted April 7, 2009 Author Share Posted April 7, 2009 (edited) found something in vb: Set the CB's RightToLeft property to TrueMe.ComboBox1.RightToLeft = Windows.Forms.RightToLeft.Yesthis can be realized from the combo's context menu.but how to do this in autoit ? Edited April 7, 2009 by jennico Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
jennico Posted April 7, 2009 Author Share Posted April 7, 2009 no. this is the same as $WS_EX_RIGHT. google says it's not possible, right aligning in combobox. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Authenticity Posted April 7, 2009 Share Posted April 7, 2009 Hmm... What about this? #include <EditConstants.au3> #include <WindowsConstants.au3> Dim $hGUI = GUICreate('Test', 200, 300) Dim $ComboBox = GUICtrlCreateCombo('', 0, 0, 200, 200, -1, $WS_EX_RIGHT) Dim $Edit = GUICtrlCreateEdit('', 10, 210, 180, 23, BitAND($GUI_SS_DEFAULT_EDIT, BitNOT($WS_HSCROLL))) Dim $Button = GUICtrlCreateButton('Te&st', 70, 250, 60, 23) GUICtrlSetData($ComboBox, '1|abc|00|## | 03 01|2 ') GUISetState() While 1 Switch GUIGetMsg() Case $Button Local $sStr = GUICtrlRead($Edit) If $sStr <> '' Then GUICtrlSetData($ComboBox, $sStr & '|') Case -3 ExitLoop EndSwitch Sleep(40) WEnd GUIDelete() Link to comment Share on other sites More sharing options...
jennico Posted April 7, 2009 Author Share Posted April 7, 2009 yes, that's the only thing one can do. not quite what i attempted but thank you. i've searched other forums and this natively seems not to be featured for combos. only thing is to use RightToLeft display if you have installed the foreign languages. j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now