Jump to content

Search the Community

Showing results for tags 'editmask'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Hi, Anybody know how to set an editmask on TunimDBedit, I only want to allow numeric characters. Is there a property for this or can it be done Onchange or OnKeyUp event? I found a code below online but did not work, if not (Key in [#8, '0'..'9', DecimalSeparator]) then begin ShowMessage('Invalid key: ' + Key); Key := #0; end else if (Key = DecimalSeparator) and (Pos(Key, Edit1.Text) > 0) then begin ShowMessage('Invalid Key: twice ' + Key); Key := #0; end; /Best regards Christian J
  2. I'm trying to implement a timecard entry screen and I want the grid columns to display in the format hh:mm (easy) and to only allow a time to be entered in edit mode (very difficult). Getting existing values to display in the hh:mm format simply requires the DataFormat of the field to be set to hh:mm. However, unlike the VCL DBGrid, the field EditMask property doesn't seem to enforce a date entry. I have tried hh:mm and !9000;1;_ and some other common edit masks but the grid column in the UniDbGrid will accept any input. As an alternative, I tried to use a UniDateTimePicker as an in-place editor and this does enforce a correct date entry but, the dropdown list shows 01:01, 01:01, 01:01,01:01, 02:01, 02:01, 02:01, etc. instead of 01:00, 01:15, 01:30, 01:45, 02:00, 02:15, etc. Using a UniDBDateTimePicker and linking that to the underlying field does give a proper dropdown list but, after picking a time from the list and pressing Enter, the grid shows the wrong value, e.g. picking 15:45 from the list results in 15:01 being displayed when Enter is pressed. After the record is posted, the correct time is shown but, it would be very confusing for the user. Has anybody had any success in implementing edit masks for UniDBGrids? Mike
×
×
  • Create New...