Jump to content

updown control disable input from keyboard


Recommended Posts

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
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...