Detecting Text Selection (OpenInsight Specific)
At 24 NOV 1998 11:01:08AM Steven King wrote:
MENU ENABLING/DISABLING BASED ON TEXT SELECTION
In order to enable or disable menu items (e.g. CUT and COPY) based on a selection made by the user, does anyone know of an efficient way of detecting text selection within text controls??
Where a single control is concerned, it is OK to directly reference the control in code, but the problem becomes awkward when there are a number of text controls on a given form, and it is expected that text may be selected from any one of them.
I was hoping that there would be an associated ?MouseButton event? that would allow the detection of selected text without the need to explicitly reference a control.
Any ideas would be much appreciated!
At 02 DEC 1998 08:05AM Cameron Revelation wrote:
Steven,
See the EVENTQUALIFIER property.
Cameron Purdy
Revelation Software