| View previous topic :: View next topic |
| Author |
Message |
toughcoder Newbie
Joined: 29 Nov 2003 Posts: 7
|
Posted: Nov 29th, 2003 05:23 AM Post subject: MouseDown not responding properly in this usercontrol |
|
|
Greetings every1,
I'm trying to make a custom CheckBox. So far I've been able to successfully draw the checkbox and the checkmark. The problem is, if u closely observe the CheckBox control included in the Windows environment, u will notice that whenever the user presses the mouse on the checkbox(MouseDown event), the checkbox window changes color to the checkbox color(vbButtonFace by default). In my checkbox, when i press the button, the control changes color sometimes and sometimes it does not. I dont know what the problem is and why its behaving like that. I'd like u guyz to take a look at it. Click the checkbox a couple of times. U'll see that occasionally, the check box window remains white and the checkmark appears. Plz help me. The project is included. Thanx in advance _________________ If Not VB Then Exit
-----------------------------------------
visit me @ [link] |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Nov 30th, 2003 08:03 AM Post subject: |
|
|
It happens sometimes when you double click. Maybe the mousedown event doesn't have enough time to fire. Maybe if you catch the double click event it will solve the problem... Also, the ckeck in the check box is small, I don't know if that is how you want it... _________________ No one is completely useless. They can at least be an example of what to avoid.
Last edited by P.T.A.M. on Dec 3rd, 2003 05:05 PM; edited 1 time in total |
|
| Back to top |
|
toughcoder Newbie
Joined: 29 Nov 2003 Posts: 7
|
Posted: Nov 30th, 2003 10:08 AM Post subject: |
|
|
thanx P.T.A.M., i checked with the double click code also, actually even if u click slowly the problem occurs. The checkbox i left coz i thought i'll fix it after this problem is solved. Thanx anyway  _________________ If Not VB Then Exit
-----------------------------------------
visit me @ [link] |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Nov 30th, 2003 03:31 PM Post subject: |
|
|
It works fine when I click slowly :confused: _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
|