Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 11 to 14 of 14 total |
TEdit UPPERCASE data entry |
Fri, Aug 7 2015 3:49 PM | Permanent Link |
Malcolm Taylor | Tim Young [Elevate Software] wrote:
> Trinione wrote: > > << Could this be a future TEdit Property (Version 2.04) ? It would be > easier to set a property on a field like this rather than having to > do it by code. >> > > Yeah, I'll probably add some formatting to the inputs when I deal > with some of the TDataSet limitations. > I had a play with Android Studio some time last year and noticed that its TEdit had formatting properties including (from memory) upper/lower case plus Sentence and Word (initial) caps. |
Mon, Aug 10 2015 5:03 AM | Permanent Link |
Paul Waegemans IMS bvba | I made one procedure hoofdletters that I put in the OnChange event from a TEdit or TEditCombobox (or any other you want to uppercase)
procedure TForm1.Hoofdletters(sender: TObject); begin TEdit(Sender).text:=UPPERCASE(TEdit(Sender).text); TEditComboBox(Sender).text:=UPPERCASE(TEditComboBox(Sender).text); end; Trinione wrote: Hi: How can data be captured in UPPERCASE using the TEdit component? I am trying to use the KeyPress event with no success. function TfrmMain.edtLastNameKeyPress(Sender: TObject; Key: Char; ShiftKey, CtrlKey, AltKey: Boolean): Boolean; begin Key := UpperCase(Key)[1]; result := true; end; |
Mon, Aug 10 2015 10:26 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Malcolm,
<< I had a play with Android Studio some time last year and noticed that its TEdit had formatting properties including (from memory) upper/lower case plus Sentence and Word (initial) caps. >> Yes, I'm sure that it can be done in other environments. The issue here is that the browser *forces* you to replace the internal input value on every keystroke in order to affect the formatting, as opposed to a per-keystroke filtering capability. This can "change" event recursion (and related) issues. Tim Young Elevate Software www.elevatesoft.com |
Mon, Aug 10 2015 10:26 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |