Jump to content
Sign in to follow this  
faustf

combobox questions

Recommended Posts

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...