Subject | RE: [IBO] Change cell text value at typing on TIB_Grid |
---|---|
Author | Jason Wharton |
Post date | 2006-11-07T05:08:40Z |
I believe there are events for this. See the OnGetText or the OnGetCellText
events.
Jason Wharton
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On Behalf
Of Roberto Freitas
Sent: Thursday, November 02, 2006 8:32 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Change cell text value at typing on TIB_Grid
Hello, I use OnChange event to do a kind of custom edition when user
types on a TEdit field.
After each character typed by the user I make some changes on TEdit
Text and it's very useful - among other situations - when typing
monetary values because I can mask text in a special way at each
character typed.
I would like to do the same with a field on a TIB_Grid. I dont't know
if it's possible, because it has not a OnChange event, but I think
maybe I could use KeyPress event as well, or some other event.
Anyway, there are some pre-conditions to do it:
1) Existence of some way to get (and set) cell text value at each
character user types on it.
2) Avoid IBO to put any automatic mask characters on field (for
instance / on a date field) and to make any authomatic field
validations.
Is't possible to reach these pre-conditions?
events.
Jason Wharton
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On Behalf
Of Roberto Freitas
Sent: Thursday, November 02, 2006 8:32 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Change cell text value at typing on TIB_Grid
Hello, I use OnChange event to do a kind of custom edition when user
types on a TEdit field.
After each character typed by the user I make some changes on TEdit
Text and it's very useful - among other situations - when typing
monetary values because I can mask text in a special way at each
character typed.
I would like to do the same with a field on a TIB_Grid. I dont't know
if it's possible, because it has not a OnChange event, but I think
maybe I could use KeyPress event as well, or some other event.
Anyway, there are some pre-conditions to do it:
1) Existence of some way to get (and set) cell text value at each
character user types on it.
2) Avoid IBO to put any automatic mask characters on field (for
instance / on a date field) and to make any authomatic field
validations.
Is't possible to reach these pre-conditions?