CyberSlug Posted February 22, 2004 Posted February 22, 2004 How can I "do something" when the user double-clicks an item in a list box? Currently, I'm using Valik's idea of using HotKeySet("{Enter}","foo") so the user can select an item by pressing Enter. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Valik Posted February 22, 2004 Posted February 22, 2004 You can't... unless Larry decides to do some message handling...
Valik Posted February 22, 2004 Posted February 22, 2004 Ahhh, I didn't know that settext worked on list boxes.
CyberSlug Posted February 23, 2004 Author Posted February 23, 2004 (edited) You can't... unless Larry decides to do some message handling... You should update your member title:Larry and AutoGUI: Is there nothing they can't do? That is quite a kludge; I like it Thanks for help again, guys One problem: The double-click code does not work ifEnvSet("OBJ1.style", 0x00201000) ;LBS_DISABLENOSCROLL + WS_VSCROLLBut I really want that obj style.... Ideas?EDIT: EnvSet("OBJ1.style", 0x50A31003) I remembered Visual Studio's Spy++ program. What reference do you all use to lookup styles/constants? (Visual Studio 6.0's API Viewer isn't helpful enough to me.) Edited February 23, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Valik Posted February 23, 2004 Posted February 23, 2004 I just look them up in the header files. VS 2003 has a "Go To Declaration" menu selection when you right click a word. I type that into the editor, use that link and it takes me to whatever I'm looking for. Most of the related styles are grouped together, so its easy to find.
CyberSlug Posted February 23, 2004 Author Posted February 23, 2004 Problem: Hitting the up/down arrow keys too fast can trigger a "double-click" Anyone know a solution that does not involve HotKeySet("{Down}"... ? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now