Sign in to follow this  
Followers 0
Manjish

How to configure an input box to take only 1 character..

8 posts in this topic

#1 ·  Posted (edited)

May the user enter 100 charachters.. the inputbox will only let him enter 1 charachter..

How can i do that..

Edited by Manjish

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites



you could use this idea... SendMessage(<Controls Handle>,EX_LIMITTEXT,lparam,wparam)

fill in the relevant parts.

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Manjish,

From the Help file: You can also specify the maximum length in the end of the password field. Just enter a number as the last character to specify the length of the string.

So InputBox("Title", "Prompt", "", " 1") does it for me.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

@m23..

I am using input box in my Gui.. like this:

GUICtrlCreateInput("", 96, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))

I was talking about this.. not the inputbox function.. sorry for the misunderstanding..

What can be done in this case then??


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

Manjish,

I used something along these lines when I wanted to limit an input to a specific number of characters:

GUICreate("Test",100,100)
$input = GUICtrlCreateInput("", 10,10,80,20)
GUISetState()

While 1
    If GUIGetMsg() = -3 Then Exit
    If GUICtrlRead($input) <> "" Then ExitLoop ; I used StringLen because I wanted 6 chars max
WEnd

ConsoleWrite(GUICtrlRead($input) & @CRLF)

I cannot make it accept more than 1 character - but you might have faster fingers!

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

M23 again I am sorry for not providing u with the full information..

I was just too lazy to tell u.. for which i am sorry..

Here's the deal.. I am making a Su Doku Solver.. (I hope u know the puzzle game SuDoku)..

For that I am using a GUI like this:

GUICreate("Test",100,100)
#include <GUIConstants.au3>
#include<WindowsConstants.au3>
#include<EditConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 381, 359, 193, 125, BitOR($WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS))
$Input2 = GUICtrlCreateInput("", 256, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input12 = GUICtrlCreateInput("", 256, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input13 = GUICtrlCreateInput("", 288, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input14 = GUICtrlCreateInput("", 288, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input15 = GUICtrlCreateInput("", 320, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input16 = GUICtrlCreateInput("", 320, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input17 = GUICtrlCreateInput("", 256, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input19 = GUICtrlCreateInput("", 288, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input21 = GUICtrlCreateInput("", 320, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input23 = GUICtrlCreateInput("", 144, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input24 = GUICtrlCreateInput("", 144, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input25 = GUICtrlCreateInput("", 176, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input26 = GUICtrlCreateInput("", 176, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input27 = GUICtrlCreateInput("", 208, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input28 = GUICtrlCreateInput("", 208, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input29 = GUICtrlCreateInput("", 144, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input30 = GUICtrlCreateInput("", 176, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input31 = GUICtrlCreateInput("", 208, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$input1 = GUICtrlCreateInput("", 32, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input3 = GUICtrlCreateInput("", 32, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$input4 = GUICtrlCreateInput("", 64, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input5 = GUICtrlCreateInput("", 64, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input6 = GUICtrlCreateInput("", 96, 48, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input7 = GUICtrlCreateInput("", 96, 72, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input8 = GUICtrlCreateInput("", 32, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input9 = GUICtrlCreateInput("", 64, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input10 = GUICtrlCreateInput("", 96, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input11 = GUICtrlCreateInput("", 32, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input18 = GUICtrlCreateInput("", 32, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input20 = GUICtrlCreateInput("", 64, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input22 = GUICtrlCreateInput("", 64, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input32 = GUICtrlCreateInput("", 96, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input33 = GUICtrlCreateInput("", 96, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input34 = GUICtrlCreateInput("", 32, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input35 = GUICtrlCreateInput("", 64, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input36 = GUICtrlCreateInput("", 96, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input37 = GUICtrlCreateInput("", 144, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input38 = GUICtrlCreateInput("", 144, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input39 = GUICtrlCreateInput("", 176, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input40 = GUICtrlCreateInput("", 176, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input41 = GUICtrlCreateInput("", 208, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input42 = GUICtrlCreateInput("", 208, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input43 = GUICtrlCreateInput("", 144, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input44 = GUICtrlCreateInput("", 176, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input45 = GUICtrlCreateInput("", 208, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input46 = GUICtrlCreateInput("", 256, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input47 = GUICtrlCreateInput("", 256, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input48 = GUICtrlCreateInput("", 288, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input49 = GUICtrlCreateInput("", 288, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input50 = GUICtrlCreateInput("", 320, 136, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input51 = GUICtrlCreateInput("", 320, 160, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input52 = GUICtrlCreateInput("", 256, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input53 = GUICtrlCreateInput("", 288, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input54 = GUICtrlCreateInput("", 320, 184, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input55 = GUICtrlCreateInput("", 32, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input56 = GUICtrlCreateInput("", 32, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input57 = GUICtrlCreateInput("", 64, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input58 = GUICtrlCreateInput("", 64, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input59 = GUICtrlCreateInput("", 96, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input60 = GUICtrlCreateInput("", 96, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input61 = GUICtrlCreateInput("", 32, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input62 = GUICtrlCreateInput("", 64, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input63 = GUICtrlCreateInput("", 96, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input64 = GUICtrlCreateInput("", 144, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input65 = GUICtrlCreateInput("", 144, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input66 = GUICtrlCreateInput("", 176, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input67 = GUICtrlCreateInput("", 176, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input68 = GUICtrlCreateInput("", 208, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input69 = GUICtrlCreateInput("", 208, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input70 = GUICtrlCreateInput("", 144, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input71 = GUICtrlCreateInput("", 176, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input72 = GUICtrlCreateInput("", 208, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input73 = GUICtrlCreateInput("", 256, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input74 = GUICtrlCreateInput("", 256, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input75 = GUICtrlCreateInput("", 288, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input76 = GUICtrlCreateInput("", 288, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input77 = GUICtrlCreateInput("", 320, 224, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input78 = GUICtrlCreateInput("", 320, 248, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input79 = GUICtrlCreateInput("", 256, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input80 = GUICtrlCreateInput("", 288, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Input81 = GUICtrlCreateInput("", 320, 272, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label1 = GUICtrlCreateLabel("Please Fill Up Known Numbers, For solving the SuDoku. ", 48, 8, 272, 17)
$Label2 = GUICtrlCreateLabel("Click on OK button to see the solution", 80, 24, 182, 17)
$Button1 = GUICtrlCreateButton("OK", 88, 312, 185, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

It has 81 input boxes.. each 1 used to input a single no...

Now I can't use ur code in this case.. as i want the loop to stay on..

Isn't there anything.. which can limit the number of chars entered in..

I want to give the user a chance to change his options if he wants.. he can change the numbers anytime he wants.. but he can't enter more than 1..

Now that my laziness has wasted so much of ur time..(for which i am thoroughly sorry).. can u help me get over this 1..

Edited by Manjish

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

@m23..

I am using input box in my Gui.. like this:

GUICtrlCreateInput("", 96, 96, 25, 21,BitOR($ES_AUTOHSCROLL,$ES_NUMBER), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))

I was talking about this.. not the inputbox function.. sorry for the misunderstanding..

What can be done in this case then??

Use GUICtrlSetLimit() or what Larry said.

Share this post


Link to post
Share on other sites

@admiral..

yeah thats exactly what i wanted.. guictrlsetlimit..

awesome.. thanks a lot..


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

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