|
-
December 9th, 1999, 05:02 AM
#1
How to get click event for MaskEditBox
I'm using VB5 and I would like to perform an action when the user clicks on a MaskEditBox control.
But this control doesn't have a click event!
Does anybody know how I can solve this problem?
Do I have to use API's or some other control?
-
December 9th, 1999, 05:58 AM
#2
Re: How to get click event for MaskEditBox
Wow!, that was a find.. no click event?!!
If have heard there is a new service pack for the Vb 5.0's version.. but i dont think there will be such a major change as to add a new event!
IF you notice it has no mouse events at all. no mousemove, no mouse down..
So only way out is Subclassing i think. After you subclass you can look for WM_MOUSEDOWN, followed by UP with in a certain interval of time, and region too.
Or you can look for WM_ACTIVATE with WA_CLICKACTIVE for wParam.
Try it. if it works / wont work let me know.
RK
-
December 14th, 1999, 03:54 AM
#3
Re: How to get click event for MaskEditBox
Thank's for your reply
I'm afraid to loose time if I'm using the API because I'm not really an expert with API.
For the moment, I solve the problem by using the GotFocus event of the MaskEditBox.
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
|