Small fix needed

Area for english topics
Antworten
redrocker1988
Beiträge: 4
Registriert: Do 4. Aug 2016, 21:01
Kontaktdaten:

Small fix needed

Beitrag von redrocker1988 »

In FormStudio when you create controls like combo boxes we need the ability to create a default value.

Example:

GUICtrlCreateCombo("",103,20,150,21,-1,-1)
GUICtrlSetData(-1,"Enabled|Disabled")

In the above example the code generated I should be able to put data between the " " in GUICtrlCreateCombo("",103,20,150,21,-1,-1) to create a default text that will display. Doing this with extracode does not achieve the desired effect. I can just generate a .au3 file and write the code in manually but that defeats the purpose of .isf files!

I really love what you have created and I know these are just minor things and can be worked around but just mentioning something to make it more effective. Thanks and keep up the good work. Looking forward to future builds!
Benutzeravatar
ISI360
Administrator
Beiträge: 273
Registriert: Fr 11. Okt 2013, 13:06
Kontaktdaten:

Re: Small fix needed

Beitrag von ISI360 »

Hi!

Sorry for the late answer...

Yes, currently this is only possible via extracode. Insert your whished default value as 3rd parameter of GUICtrlSetData:
GUICtrlSetData(-1,"Enabled|Disabled","Enabled")

In the generated code..it should look like this:
GUICtrlCreateCombo("",103,20,150,21,-1,-1)
GUICtrlSetData(-1,"Enabled|Disabled","Enabled")

This sould work! ;)

PS: Maybe there comes an extra flied for this in a upcoming version...
Antworten