Sign in to follow this  
Followers 0
faustf

combobox questions

3 posts in this topic

#1 ·  Posted (edited)

hi guys i have a   combobox created  in first function of  gui ,  the  data  of  combo is  generated in second part

i know  for insert  data in it  you must use  example  this

For $i = 0 To UBound($aResultCondition) - 1
            GUICtrlSetData($SITIWEB_NewItem_Combo5, $aResultCondition[$i])
        Next

but  if  i want  insert  in the  first  position  of  combo ???

like

    $SITIWEB_NewItem_Combo5 = GUICtrlCreateCombo("first position", 10, 374, 105, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) ; Combo5

For $i = 0 To UBound($aResultCondition) - 1
            GUICtrlSetData($SITIWEB_NewItem_Combo5, $aResultCondition[$i])
        Next

i must destroy and recreate  a combobox ?? , not  exist  another solution ??

thankz at all

Edited by faustf

Share this post


Link to post
Share on other sites



You can use _GUICtrlComboBoxEx_InsertString for insert at specific position.

1 person likes this

Share this post


Link to post
Share on other sites

thankz so much

:)

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  
Followers 0