Author: Paul McNett
Posted: 2001-10-09 at 15:40:38
On Tuesday 09 October 2001 01:10 pm, A Hilton wrote:
> You could do a:
>
> keyboard '{END}'
> keyboard '{HOME}'
> keyboard '{SHIFT+END}'
>
> and it *might* work. I say *might* because there are cases where it
> doesn't work (like having a textbox/editbox contained in a container class
> that's programmatically added to a grid ... in which case NOTHING works to
> auto-select text reliably). I'm sure there are other methods to achieve
> what you want, but my brain is mush at the moment having had the pleasure
> of debugging a chain of MS Exchange Servers all morning
> (F#*&!!##KIN#@##@!).
I'd like to suggest using SelStart and SelLength. I just made a pretty
spiffy status bar utilizing an editbox which automatically selects the newest
status message. In my case I set that editbox property (what property was
that again? <g>) that keeps the text selected even when the control doesn't
have the focus. It works without a hitch.
You can also look at the SelectOnEntry Property, but I've had weird results
relying on that in the past.
--
Paul McNett
Hollister, CA USA