Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Posts
    182

    disable mouse click in input box?

    How can I prevent the user from clicking inside the input box?
    I have already used Screen.SetFocus to activate the input box, but some users keep on clicking inside the box and thus causing a space in some instances. I use this when they need to enter a 4 digit key.

    I think what I actually meant to say is how do I prevent a user from entering spaces into a input box?
    Thanks
    ron
    Last edited by ronwilliams; 09-29-2009 at 12:00 PM.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Why not just trim the spaces off the entry?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Jun 2008
    Posts
    182
    Sorry for sounding stupid, but how do I do this in SF8?

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    String.TrimLeft() and String.TrimRight()


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Jun 2005
    Posts
    470
    another way could be to use Dialog.MaskedInput or an Edit Field control and set the mask so that only digits are accepted.
    Last edited by pww; 09-29-2009 at 02:25 PM.

  6. #6
    Join Date
    Jun 2008
    Posts
    182
    THANKS!

    I will do this!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts