Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
MouseDown not responding properly in this usercontrol
View previous topic :: View next topic  
Author Message
toughcoder
Newbie


Joined: 29 Nov 2003
Posts: 7

PostPosted: Nov 29th, 2003 05:23 AM    Post subject: MouseDown not responding properly in this usercontrol Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Nov 30th, 2003 08:03 AM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
toughcoder
Newbie


Joined: 29 Nov 2003
Posts: 7

PostPosted: Nov 30th, 2003 10:08 AM    Post subject: Reply with quote

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 Smile
_________________
If Not VB Then Exit
-----------------------------------------
visit me @ [link]
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Nov 30th, 2003 03:31 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic