Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Two questions

combobox

  • Please log in to reply
2 replies to this topic

#1 2710

2710

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 110 posts

Posted 21 November 2009 - 06:24 AM

Q1) I have got a postcode edit box. I want to have a validation so that there is sort of like a real time mask. Like, I want it so that the user enters in LLN NLL

Where L = Letter and N = Number

in real time. Ie, not possible to enter Number as the first figure. Although if I cant do real time, I guess I can have a check afterwards which checks for number and letter.

Q2) How do you make a combobox read only? Ie, you cant type into it, and can only choose from it. There isn't a 'readonly' property.

Thanks
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 21 November 2009 - 09:12 PM

You could use the onkeypress event to analyze what the user is trying to type.

.enabled.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 Michael-Rockett

Michael-Rockett

    CC Newcomer

  • Just Joined
  • PipPip
  • 11 posts

Posted 09 December 2009 - 02:38 AM

You could also use a TMaskEdit.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download