|
-
Sep 20th, 2017, 04:39 AM
#11
Fanatic Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Eduardo-
That's not what happens to me.
Eduardo, Krool is right.
In here, it also happens with your example.
Not always.
Krool's suggestion to do the selection on MouseUp helps, kind of.
As we must be able to set the focus by Tab key, we need the GotFocus event.
Works good.
But when we set the focus by mouse, the GotFocus kicks in, and does something which is not ok.
No problem, MouseUp cures it.
But it doesn't look clean, we can see the selection change from GotFocus to MouseUp.
I remember there is a possibility to check HOW a control got the focus.
http://www.devx.com/vb2themax/Tip/18274
EDIT:
Solved.
We just need to invoke the selection routine in both GotFocus and MouseUp.
See attached project.
Textbox problem SOLVED.zip.docx
Sorry Krool for the suspicion on your control.
Last edited by Karl77; Sep 20th, 2017 at 04:56 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|