Sign in to follow this  
Followers 0
AustrianOak

updown control disable input from keyboard

3 posts in this topic

how to i disable a user from manually typing data in my updown control. what if i just want them to use the arrows on the control. how can this be achieved?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

how to i disable a user from manually typing data in my updown control. what if i just want them to use the arrows on the control. how can this be achieved?

UpdownConstants.au3 doesn't include anything like that, but you could always just validate the input. When a user changes it to a value that you haven't specified, you can just delete it or throw a MsgBox in their face. muttley

EDIT: I haven't tried this, but you should be able to use the $ES_READONLY attribute for the input box that you create the UpDown control from.

Edited by Airwolf

Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

Adding $ES_READONLY worked but I wish it wouldn't have changed the color.

Thanks Airwolf

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