Jump to content

Recommended Posts

Posted

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

Posted

  LOULOU said:

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

<{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
Posted

  jpm said:

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 ?
Posted

  LOULOU said:

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. :(
Posted (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
WEnd
Posted ImageIs it normal?

Edit: I solved the problem by adding GUICtrlSetState(-1, $GUI_DISABLE) for the graphic :(

Edited by mdes

Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV

Posted

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 :">

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...