Highlighted
Absent Member.
Absent Member.
457 views

[archive] tip: how to select text in entry-field via code

[Migrated content. Thread originally posted on 13 July 2004]

I just discovered an undocumented feature of Entry-Field graphical controls. I was beating my head against the runtime in the usual way trying to figure how how to manipulate selection-text/length properties to select a field's text.

If you set the action to 6, it executes the 'select all' action is available via mouse but not from the action codes mentioned in the docs or acugui.def.

so,
modify text-field action 6

selects the text in an entry field.

Merlin
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] tip: how to select text in entry-field via code

Thanks for the tip. Very helpful. Saved me from writing lengthy code for such a trick.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.