Jump to content

is it posible to do tihs in a gui


n9mfk9
 Share

Recommended Posts

  • Developers

hello

can @mday be set as the defualt in a gui combobox

also is there a whay to set a gui input box to only except text

thamk for all help

beau

<{POST_SNAPBACK}>

$Mdays = ""
For $x = 2 to 30
   $Mdays = $Mdays & $x & "|"
Next
$Mdays = $Mdays & "31"
GUICtrlCreateCombo ("1", 10,10); create first item
GUICtrlSetData(-1,$Mdays,@MDAY")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

$Mdays = ""
For $x = 2 to 30
   $Mdays = $Mdays & $x & "|"
Next
$Mdays = $Mdays & "31"
GUICtrlCreateCombo ("1", 10,10); create first item
GUICtrlSetData(-1,$Mdays,@MDAY")

<{POST_SNAPBACK}>

hi i tried the coe an got a

error line 7 sting missing closing quote

what did i miss beau

Link to comment
Share on other sites

hi i tried the coe an got a

error line 7 sting missing closing quote

what did i miss beau

<{POST_SNAPBACK}>

i tried running this

$Mdays = ""

For $x = 2 to 30

$Mdays = $Mdays & $x & "|"

Next

$Mdays = $Mdays & "31"

GUICtrlCreateCombo ("1", 10,10)

GUICtrlSetData(-1,$Mdays,@MDAY)

i goot error line 6 GUICtrlCreateCombo ("1", 10,10) unknown function name

what am i misssing i running winows xp

Link to comment
Share on other sites

  • Developers

i tried running this

$Mdays = ""

For $x = 2 to 30

  $Mdays = $Mdays & $x & "|"

Next

$Mdays = $Mdays & "31"

GUICtrlCreateCombo ("1", 10,10)

GUICtrlSetData(-1,$Mdays,@MDAY)

i goot error line 6 GUICtrlCreateCombo ("1", 10,10) unknown function name

what am i misssing  i running winows xp

<{POST_SNAPBACK}>

My guess is that the next questions will be:

Nothing is shown, any idea why?

In other words, The way your question was phrased, i assumed you have basic knowledge about AutoIt3 and cretaing a GUI. :idiot:

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

My guess is that the next questions will be:

Nothing is shown, any idea why?

In other words, The way your question was phrased, i assumed you have basic knowledge about AutoIt3 and cretaing a GUI.  :idiot:

<{POST_SNAPBACK}>

here a gui i cme up wit that works

i like to det @mday se the deffualt of the combobox

EnvSet("GUI","title=My InputBox Title|focus=2|action=1|file=races.ini")

EnvSet("OBJ1","type=label|text=date")

Envset("OBJ2","type=combo|x=25|y=1|w=35|data=01;02;03;04;05;06;07;08;09;10;11;12;13;14;16;16;17;18;19;20;21;22

;23;24;25;26;27;28;29;30;31")

EnvSet("OBJ3","type=label|text=Number of copys|x=5|y=30|w=80|h=20")

$ES_NUMBER = 0x2000

EnvSet("OBJ4","type=input|text=5|x=90|y=30|w=25|h=20|style=" & $ES_NUMBER)

EnvSet("OBJ5","type=button|text=&Submit|x=160|y=250|submit=1|close=1")

RunWait("au3guixp")

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...