A last word on EditLines (for now)

Published 23 APR 2014 at 12:00:30AM

Updated on 31 MAR 2014 at 12:00:30AM

We've taken a look over the last few posts at some of the new features we've added to EditLine controls, but before we leave them we'll mention a few miscellaneous new properties that you might find useful:

  • AUTOSELECT
  • CUEBANNER
  • EXITCHARS
  • VALIDCHARS

 

This is a simple boolean property.  When set to TRUE all text in the control will be selected when the EditLine is given focus.

This is a string property that contains the text to display when an EditLine has no data.  The text is normally displayed in a faded style to differentiate it from "real" text.  It is intended primarily to give the user a simple hint on the purpose of the EditLine, or on the format of the data it should contain.

This property allows you to specify one or more characters as "Exit" characters, which means that if a user types any of them into the control the focus is automatically moved to the next control in tab-order as though they had hit the Tab key. This property is a simple string containing the Exit characters.

// Move to the next control if the user enters a "." or a space
exitChars = ". "
call set_Property( @window : ".EDL_IP1", "EXITCHARS", exitChars )

Note this property does not work if the PASSWORDSTYLE property is TRUE.

This property allows you to specify one or more characters that are "Valid" characters, which means that the user can only enter these characters into the control. This property is a simple string containing the characters that are allowed.

// Only allow numeric characters in EDL_NUMBER
validChars = "0123456789"
call set_Property( @window : ".EDL_NUMBER", "VALIDCHARS", validChars )

Note this property does not work if the EDITMASK property is set or the PASSWORDSTYLE property is TRUE.

 

(Disclaimer: This article is based on preliminary information and may be subject to change in the final release version of OpenInsight 10).

 

Comments


At 23 APR 2014 03:23PM David Tod Sigafoos wrote:

More great features bringing OI toward the forefront of tools. Has 'mostly' always had the bones but now it can be pretty too. Slapping some lipstick on surely doesn't hurt and things these the users expect any more. Yeah Captain ..

Original ID: revdevx.wordpress.com/?p=1210
  • third_party_content/community/commentary/revdevx/16915.0003472222.txt
  • Last modified: 2024/01/29 20:23
  • by 127.0.0.1