Jump to content
Sign in to follow this  
n9mfk9

is it posible to do tihs in a gui

Recommended Posts

n9mfk9

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

Share this post


Link to post
Share on other sites
this-is-me

GUICtrlCreateCombo(@mday

bla bla bla...

For only accepting text, just filter out what you don't need after reading the return from the input.


Who else would I be?

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
n9mfk9

$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

Share this post


Link to post
Share on other sites
layer

... just take away the " in this line

GUICtrlSetData(-1,$Mdays,@MDAY") <-------- that " sign, take that out

that should work..


FootbaG

Share this post


Link to post
Share on other sites
n9mfk9

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

Share this post


Link to post
Share on other sites
MHz

Have you got 1.0.103 unstable version?

Share this post


Link to post
Share on other sites
Josbe

...

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

what am i misssing  i running winows xp

<{POST_SNAPBACK}>

You need the unstable version. ('autoit-v3.0.103.exe', the installer)

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
n9mfk9

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")

Share this post


Link to post
Share on other sites
n9mfk9

What you wish to work with au3guixp or autoit-v3.0.103 syntax?  :idiot:

<{POST_SNAPBACK}>

does 103 ork better then guixp i did not know 103 was out

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  

×