Carlos and Terry,
You are correct. When I reset the focus back to the editfield with
the word being selected, the highlighting displayed correctly.
Thank you very much.
Paul
On Sep 25, 2006, at 1:16 PM, Carlos M wrote:
On Sep 25, 2006 5:43 PM, Paul Young wrote:
The problem is that selecting an editfield word
using RB code shows up differently than
setting the same word by double-clicking.
On Windows to highlight a word via code, we need FIRST to set the
focus to the EditField.
A test example I made with an editfield and the following code on a
pushbutton works fine:
EditField1.Text = "one two three"
EditField1.SetFocus()
EditField1.SelStart = 0
EditField1.SelLength = 3
I don't know if on MAC you must also set the focus to the editfield
first.
Carlos
Paul Young
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>