PJThys Posted October 18, 2005 Share Posted October 18, 2005 I made a WS_EX_CONTEXTHELP but don't know how let it work. How to display help when clicking on the ? button thx in advance Peter Link to comment Share on other sites More sharing options...
/dev/null Posted October 19, 2005 Share Posted October 19, 2005 I made a WS_EX_CONTEXTHELP but don't know how let it work. How to display help when clicking on the ? buttonthx in advancePeterHmm.. can you either post some code or describe a bit more detailed what you want to achieve?CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
PJThys Posted October 19, 2005 Author Share Posted October 19, 2005 I want to have a ?-mark in my windows title, left of the minimize button Top right corner of the window. This questionmark appears when i create a gui with extended style $WS_EX_CONTEXTHELP . If I click on the questionmark the cursor has to change to a cursor with questiomark and give me tooltip like information of the area on the screen I click on with this context help cursor. Standard windows behaviour. I managed to get this question mark appear (only on windows 2000, not on Windows XP ???), but I don't know how to code the standard behaviour, ie change cursor, and give tooltip-like info when clicking on the screen. Try using windowskey+pause/break and you see what i mean.thxPeterHmm.. can you either post some code or describe a bit more detailed what you want to achieve?CheersKurt Link to comment Share on other sites More sharing options...
/dev/null Posted October 19, 2005 Share Posted October 19, 2005 (edited) I want to have a ?-mark in my windows title, left of the minimize button Top right corner of the window. This questionmark appears when i create a gui with extended style $WS_EX_CONTEXTHELP . If I click on the questionmark the cursor has to change to a cursor with questiomark and give me tooltip like information of the area on the screen I click on with this context help cursor. Standard windows behaviour. I managed to get this question mark appear (only on windows 2000, not on Windows XP ???), but I don't know how to code the standard behaviour, ie change cursor, and give tooltip-like info when clicking on the screen. Try using windowskey+pause/break and you see what i mean.thxPeterFor the cursor part: See GUISetCursor().For the click on the questionmark: What EVENT do you get with GUIGetMsg() when you click the questionmark?For the rest: Well, that's the most work. You'll have to remember that the questionmark was clicked. If that has happened, change the cursor style. Now, if there is another mouse click (EVENT: $GUI_EVENT_PRIMARYDOWN) then you will have to figure out where on the screen the mouse button was clicked (MouseGetPos(), see also MouseCoordMode) and if there is anything you need help for. For the later: One way would be to build an array that holds the coordinates of all your GUI Controls. Loop through the array and try to find a matching Control. If there is one, display the help text (probably stored in the same array or in a different array).EDIT: For the tooltip help see: ToolTip()CheersKurt Edited October 19, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
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