Shao Posted December 19, 2005 Share Posted December 19, 2005 Hello everybody here's a part of my script : " ; TITRE If Not IsDeclared("Titre") Then Dim $Titre GuiCreate("TITRE", 260, 120,(@DesktopWidth-260)/2, (@DesktopHeight-120)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Titre = GUICtrlCreateCombo("", 70, 30, 120, 20) GUICtrlSetData(-1,"Monsieur|Madame|Mademoiselle","") $Valider = GUICtrlCreateButton("Valider", 70, 70, 120, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Case $msg = $Valider $Titre = GUICtrlRead($Titre) ExitLoop EndSelect WEnd " My Problem : Why does the combolist appear on a computer under win XP but not on a computer under win98 ? My script was compiled on a computer under win XP ; is it the reason of this bug ? Shao Link to comment Share on other sites More sharing options...
jpm Posted December 19, 2005 Share Posted December 19, 2005 read at the docUnder Windows XP/2003 window will adapt the size of the opened combo. On other Windows versions you can defined this size with the "height" parameter if the default value is not BIG enough to contain at least one line. Link to comment Share on other sites More sharing options...
Shao Posted December 19, 2005 Author Share Posted December 19, 2005 Thank you both of you.I defined a height of 20 in the combo which list contains 3 items :$Titre = GUICtrlCreateCombo("", 70, 30, 120, 20)Do you believe it's not enough to let some item appear ? Link to comment Share on other sites More sharing options...
Shao Posted December 19, 2005 Author Share Posted December 19, 2005 At least 65...LAr.Thank you very much. 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