LOULOU Posted May 4, 2005 Share Posted May 4, 2005 GUICtrlSetTip doesn't diplay the tip in a GUI with Windows2000 SP 4 French Jpm can you see that's plmease. I have yet descover the problem. Thanks Link to comment Share on other sites More sharing options...
jpm Posted May 4, 2005 Share Posted May 4, 2005 GUICtrlSetTip doesn't diplay the tip in a GUI with Windows2000 SP 4 FrenchJpm can you see that's plmease. I have yet descover the problem.Thanks<{POST_SNAPBACK}>I check it and it works test the following script Opt ("TrayIconDebug", 1) ;Opt ("WinTitleMatchMode", 4) FileChangeDir(@Scriptdir) #include "GUIConstants.au3" Global $title = "foo ToolTip Example" GUICreate($title) Global $button = GuiCtrlCreateButton ("Hover over me",10,10) ;GuiCtrlSetState($button, $GUI_DISABLE) GuiCtrlSetTip($button, "This is a tooltip") Global $toggle = GuiCtrlCreateCheckbox ("Enable button",10,90) GuiSetState() ; Run the GUI until the dialog is closed or timeout $start=TimerInit() Do $msg =GUIGetMsg() if $msg>0 then If $msg = $toggle Then If GUICtrlRead($toggle) = $GUI_CHECKED Then GuiCtrlSetState ($button, $GUI_ENABLE) Else GuiCtrlSetState ($button, $GUI_DISABLE) EndIf EndIf $start=TimerInit() endif Until $msg = $GUI_EVENT_CLOSE; OR TimerDiff($start)>=3000 Exit Link to comment Share on other sites More sharing options...
LOULOU Posted May 4, 2005 Author Share Posted May 4, 2005 I check it and it works test the following script Opt ("TrayIconDebug", 1) ;Opt ("WinTitleMatchMode", 4) FileChangeDir(@Scriptdir) #include "GUIConstants.au3" Global $title = "foo ToolTip Example" GUICreate($title) Global $button = GuiCtrlCreateButton ("Hover over me",10,10) ;GuiCtrlSetState($button, $GUI_DISABLE) GuiCtrlSetTip($button, "This is a tooltip") Global $toggle = GuiCtrlCreateCheckbox ("Enable button",10,90) GuiSetState() ; Run the GUI until the dialog is closed or timeout $start=TimerInit() Do $msg =GUIGetMsg() if $msg>0 then If $msg = $toggle Then If GUICtrlRead($toggle) = $GUI_CHECKED Then GuiCtrlSetState ($button, $GUI_ENABLE) Else GuiCtrlSetState ($button, $GUI_DISABLE) EndIf EndIf $start=TimerInit() endif Until $msg = $GUI_EVENT_CLOSE; OR TimerDiff($start)>=3000 Exit<{POST_SNAPBACK}>I try your code on my computer, and the tooltip won't appear. What can i do for searching the trouble ? Link to comment Share on other sites More sharing options...
jpm Posted May 4, 2005 Share Posted May 4, 2005 I try your code on my computer, and the tooltip won't appear. What can i do for searching the trouble ?<{POST_SNAPBACK}>If I was a Microsoft support guy I would have say just reinstall. To be frank no idea certainly some registry value suppress the tooltip display. Link to comment Share on other sites More sharing options...
mdes Posted May 8, 2005 Share Posted May 8, 2005 (edited) Following is a code showing a label partially over a Graphic. The Tip is not shown when the mouse is on the label part which is overlayed by the graphic:#include <GUIConstants.au3> $GUI = GUICreate("My GUI control tip", 150, 120); will create a dialog box that when displayed is centered $Graphic = GUICtrlCreateGraphic (0, 0, 60, 120) GUICtrlSetBkColor(-1, 0xff0000) GUICtrlCreateLabel("my label", 40, 40) GUICtrlSetTip(-1, "tip of my label") GUISetState() While GUIGetMsg() <> $GUI_EVENT_CLOSE WEndIs it normal?Edit: I solved the problem by adding GUICtrlSetState(-1, $GUI_DISABLE) for the graphic Edited May 8, 2005 by mdes Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV Link to comment Share on other sites More sharing options...
jpm Posted May 8, 2005 Share Posted May 8, 2005 Overlap of controls should be avoid or as for pic and graphic you must disable them when you don't need to received event from them. I think I update the doc for pic I should update a little more :"> 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