Subject | Resending: [IBO] Re: edit masks |
---|---|
Author | Helen Borrie |
Post date | 2003-09-07T10:03:22Z |
Sorry about this messed-up posting. My mail client plays up like this
sometimes and refuses to send the latest saved text. :(
At 11:35 PM 5/09/2003 +0000, you wrote:
From your various messages, I see confusion between display properties and
edit masks. The CharCase properties are display attributes - they don't
affect how data are written - they just transform the display attributes
for display purposes.
Edit masks *DO* affect what the user enters into the GUI. Their purpose is
to prescribe the format of *input*. They don't affect the display
properties and the display properties don't affect them.
The syntax for specifying an Editmask is very restrictive. Look up the
Delphi help for TEditMask, which describes the syntax in detail. I keep a
printout of this topic taped to the wall of the office!!
Editmasks work only with controls that support them. Comboboxes don't, for
reasons described by Geoff. Editmasks also get activated only when a
supported control is in an editing state (dsInsert, dsEdit). IOW,
Editmasks and display masks in Delphi do not integrate with each other.
Geoff's components do a much better job at integrating the display and edit
machinery.
Helen
sometimes and refuses to send the latest saved text. :(
At 11:35 PM 5/09/2003 +0000, you wrote:
>--- In IBObjects@yahoogroups.com, "Jonathan M. Freedman"Jonathan,
><jonathanmfreedman@h...> wrote:
> > edit masks in combobox and editbox are not operating
> > consistently...some of them work for PROPER or UPPER and some
>don't,
> > without any particular pattern of success or failure...am i missing
> > something?
>
>
>there is a page on a tabbed page control that contains client
>information...there are several combo boxes including cbTown...the
>CharCase property for the Town variable is PROPER...there is also a
>combobox called cbVillage, with CharCase as PROPER...both comboboxes
>have their item properties filled using a cursor...both are set to
>save with the insert sql automatically generated by IBO...however,
>the Village one is displayed and saved with the first letter
>capitalized and the Town one isn't. I have deleted all trial data
>from the database in an attempt to see whether that had an impact,
>but no.
>cbuilder6 ibo 4.2i firebird 1.5 rc5 windows xp prof
From your various messages, I see confusion between display properties and
edit masks. The CharCase properties are display attributes - they don't
affect how data are written - they just transform the display attributes
for display purposes.
Edit masks *DO* affect what the user enters into the GUI. Their purpose is
to prescribe the format of *input*. They don't affect the display
properties and the display properties don't affect them.
The syntax for specifying an Editmask is very restrictive. Look up the
Delphi help for TEditMask, which describes the syntax in detail. I keep a
printout of this topic taped to the wall of the office!!
Editmasks work only with controls that support them. Comboboxes don't, for
reasons described by Geoff. Editmasks also get activated only when a
supported control is in an editing state (dsInsert, dsEdit). IOW,
Editmasks and display masks in Delphi do not integrate with each other.
Geoff's components do a much better job at integrating the display and edit
machinery.
Helen