Sign in to follow this  
Followers 0
RAMzor

Mouse double-click on label?

2 posts in this topic

How check if a mouse double-click ckliced on label created with GUICtrlCreateLabel()?

For example, double-click on label with name "Click Me" open message box.

Share this post


Link to post
Share on other sites



How check if a mouse double-click ckliced on label created with GUICtrlCreateLabel()?

For example, double-click on label with name "Click Me" open message box.

This is the only solution I can think of right off.

Create a button with the coords, and size boundries that were set up for your label. and set it to hidden. It'll be an overlapped control, but then it'll accept clicks, and you can trap on that button in your message loop. If you set it to hidden, it should work. and you can remove the tabstop style, I think, if it's a dialog you want to be able to ta through. I'm not sure that it'd appear though, if it was a hidden button, in the tabstop list.

HTH,


~~TheCreator~~Visit http://tysdomain.com for personal software and website solutions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0