Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - KeyPress event ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

KeyPress event ?

 Post Reply Post Reply
Author
Message
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Topic: KeyPress event ?
    Posted: 03 November 2005 at 3:23am

Can you give us something like vb KeyPress event ?

VB event: KeyPress(KeyAscii As Integer)

In vb the keypress is triggered every time an user press a key and setting KeyAscii = 0 in the event code it's a nice way to refuse the user input. This way a developer can implement a key by key custom control of user input and this is very powerfull for a developer.

Actually you give us a keyup and keydown event but this events are triggered only when an user press some keys that cannot be edited on the value box, so the developer have not control on the editing.

You can said that Codejock have Setmask to control the user input, but also this way is often too tightened.

Consider this sample: 

An application have a lot of input of double precision number and this numbers have not a predefined mask (for example can have either 1 to 20 digits before decimal separator and 1 to 30 digits after the decimal separator). With set mask you must give a very long mask that is near to be unusable.

This specific sample (that is my actual trouble) would be solved also if you give us a numeric mask character that can let the user input the decimal separator (. or ,) in a random position but codejock have not this option (it's really strange that the numeric mask character can have the space but not the . or , decimal separator).

But i think the best is to give developers the chance to custom develop code to get the control on the user editing. This way every developer can do what he wants.

Thanks a lot.

 

SuperPippo
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.