Print Page | Close Window

KeyPress event ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=3143
Printed Date: 23 November 2024 at 2:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: KeyPress event ?
Posted By: Superpippo
Subject: KeyPress event ?
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net