Sign in to follow this  
Followers 0
sykes

Combo Box Values on Win9x

4 posts in this topic

#1 ·  Posted (edited)

I tried the following code on a Windows 98 machine and the combo boxes had no values showing ... Am I missing something obvious here?

#include <GUIConstants.au3>

GUICreate("Software Install", 397, 150, -1, -1)

GUICtrlCreateLabel("       Software Install 1", 5, 5, 125, 20)
$combo1 = GUICtrlCreateCombo("", 5, 25, 125, 30)
GUICtrlSetData($combo1,"Package 1|Package 2|Package 3")

GUICtrlCreateLabel("  Software Install 2", 150, 5, 125, 20)
$combo2 = GUICtrlCreateCombo("", 136, 25, 125, 30)
GUICtrlSetData($combo2,"Package 4|Package 5|Package 6")

GUICtrlCreateLabel(" Software Install 3", 280, 5, 125, 20)
$combo3 = GUICtrlCreateCombo("", 267, 25, 125, 30)
GUICtrlSetData($combo3,"Package 7|Package 8|Package 9")

GuiSetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

The drop down values show on Windows 2000 and XP but not on Windows 98 :)

Edited by psichosis

We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

IIRC, you have to set the height of a combobox larger to allow it to show all the items. Try 80 instead of 30 for height.

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

OK That fixed the issue with Windows 98 .... Still don't know why it worked fine on XP and 2000 though

Thanks this-is-me :)


We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites

Win2000 works as Win98, WinXp ignores the value and show all items anyway.

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