Jump to content

Recommended Posts

Posted

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

Posted

read at the doc

Under 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.

:P

Posted

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 ?

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
×
×
  • Create New...