I tried that already. When I step thru the text is highlighted until the
line of code is shown.  But when I run it,even with the evt.stop in place it
still behaves the same.  Is there a way I can break (i.e. stop) the program
when SelectedLength reverts to 0?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Thursday, August 09, 2007 8:58 PM
To: Dabo Users list
Subject: Re: [dabo-users] SelectOnEntry

On Aug 9, 2007, at 4:03 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:

> I am trying to ensure that the text in a box is selected upon entry 
> and it works fine when tabbed into.  However, when I click on the 
> field, the entry does not highlight.  I stepped thru the code by 
> binding to the gotfocus and tracked the SelectionLength property thru 
> the watch window.  I found that initially, the text is highlighted, 
> but when the code hits the "self.raiseEvent(dEvents.GotFocus, evt)" 
> line noted below the SelectionLength goes to 0.

        Does the behavior change if you add: evt.stop() to your GotFocus()
handler?


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/dabo-users/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAafA2fnYuPUOMNFpIYnBEQcKAAAAQAAAARJ5/[EMAIL
 PROTECTED]

Reply via email to