Sign in to follow this  
Followers 0
yclee99

GuiCtrlCreateCombo

5 posts in this topic

Here is my simplified version of my script.

#include <GUIConstantsEx.au3>

GUICreate("My GUI Tab", 200, 350)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 55, 90)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 75, 90)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 105, 90)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 125, 90)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 155, 90)

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 175, 90)

GUISetState(@SW_SHOW)

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_MINIMIZE

MsgBox(0, "", "Dialog minimized", 2)

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

EndSelect

WEnd

above is the simplified version of my script. In the orginal script, it has 4 tabs (1st tab with 4 button, 2nd tab with input, 3rd and 4th tab with combo similiar to script above). Furthermore, the select case is originally use for the 4 button is my 1st tab).

The problem that I am facing is on the 6th combo, it doesn't show any 'value' which it supposed to show 'a' as default.

Share this post


Link to post
Share on other sites



The default for your 6th combo is ""

Check to see if you have used any GUICtrlSetData(-1, "a|b|c|d", "a") AFTER you created the checkbox.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

The default for your 6th combo is ""

Check to see if you have used any GUICtrlSetData(-1, "a|b|c|d", "a") AFTER you created the checkbox.

Sorry, I got get what you mean

"Check to see if you have used any GUICtrlSetData(-1, "a|b|c|d", "a") AFTER you created the checkbox."

My 6th combo default is 'a' right? the 1st - 6th combo are having similar coding.

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 55, 90)

p/s: I'm not IT expert....

Share this post


Link to post
Share on other sites

Sorry, I got get what you mean

"Check to see if you have used any GUICtrlSetData(-1, "a|b|c|d", "a") AFTER you created the checkbox."

My 6th combo default is 'a' right? the 1st - 6th combo are having similar coding.

GUICtrlSetData(-1, "a|b|c|d", "a")

GUICtrlCreateCombo("", 85, 55, 90)

p/s: I'm not IT expert....

problem solved...

admin can close my thread.

Share this post


Link to post
Share on other sites

The meaning of "-1" is "previously created control".

Can you set the data for something which doesn't exist??

Another way of saying it: what are the logical steps? Modify -> Create or Create -> Modify ?

And the final way: Read the help file ... again and again if needed.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it 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