Jump to content

Possible bugs with GUICtrlSetTip


LOULOU
 Share

Recommended Posts

JPM,

I confirm you the problem. This morning I am at home, and i try my program on a windows XP pack SP2 and the tooltip appear without any problem. With Windows 2000 tooltip never appears.

You can reproduce the problem with Windows 2000 French version and with the example given in the autoIt help.

Best regards

Link to comment
Share on other sites

JPM,

I confirm you the problem. This morning I am at home, and i try my program on a windows XP pack SP2 and the tooltip appear without any problem. With Windows 2000 tooltip never appears.

You can reproduce the problem with Windows 2000 French version and with the example given in the autoIt help.

Best regards

<{POST_SNAPBACK}>

I try to reproduce your problem, without any success under a Windows 2000 SP3(French) running under a Virtual machine as I do for other windows versions.

If ypu use the help example and you put the mouse over the label after few seconds the tip popup. :lmao:

Link to comment
Share on other sites

I have also noticed issues with this function on Windows 2000.

I have used the function in a child window.

When I hover over the label, the tooltip doesn't appear.

Because I don't want a taskbar entry, I can only Alt+Tab or click the label.

When I click, it still doesn't appear. When I Alt+Tab it does work again.

This never happened with Windows XP.

Edited by SlimShady
Link to comment
Share on other sites

I have also noticed issues with this function on Windows 2000.

I have used the function in a child window.

When I hover over the label, the tooltip doesn't appear.

Because I don't want a taskbar entry, I can only Alt+Tab or click the label.

When I click, it still doesn't appear. When I Alt+Tab it does work again.

This never happened with Windows XP.

<{POST_SNAPBACK}>

is the help example working for you?

Can you post a child example? Thanks :lmao:

Link to comment
Share on other sites

Here it is.

I can't test this on Windows 2000 so you will have to do it.

#include <GUIConstants.au3>

AutoItSetOption("WinTitleMatchMode", 4)
$TaskBar_pos = WinGetPos("classname=Shell_TrayWnd")
AutoItSetOption("WinTitleMatchMode", 1)

$TaskBarHeight = $TaskBar_pos[3]
$Top = @DesktopHeight - $TaskBarHeight - 15
$style3 = BitOR($WS_POPUP, $WS_CHILD)

$MainWin = GUICreate("GUI_1")

$AlarmClock = GUICreate("GUI_2", 60, 15, @DesktopWidth - 60, $Top, $style3, $WS_EX_TOPMOST, $MainWin)
$clock_label = GUICtrlCreateLabel (GetTime(), 5, 0, 60, 15)
   GUICtrlSetFont ($clock_label, 10, 400, -1, "Tahoma")
   GUICtrlSetTip($clock_label, @MON & "/" & @MDAY & "/" & @YEAR)
GUISetState (@SW_SHOW)

While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = $GUI_EVENT_CLOSE
         GUISwitch($MainWin)
         GUIDelete()
         GUISwitch($clock_label)
         GUIDelete()
         
      Case Else
         Sleep(25)
         
   EndSelect
WEnd

Func GetTime()
   If Number(@HOUR) < 12 Then
      If Number(@HOUR) = 0 Then
         $Hour = "12"
      Else
         $Hour = Number(@HOUR)
      EndIf
      $AMPM = "AM"
   ElseIf Number(@HOUR) >= 12 Then
      If Number(@HOUR) > 12 Then
         $Hour = Number(@HOUR) - 12
      Else
         $Hour = Number(@HOUR)
      EndIf
      $AMPM = "PM"
   EndIf

   Return $Hour & ":" & @MIN & " " & $AMPM
EndFunc  ;==>GetTime
Link to comment
Share on other sites

Thanks for your help.

I did the check under Win2000 SP3 (FR) and Win2000 SP4 (US) it works fine the tip show up  :lmao:

<{POST_SNAPBACK}>

Let me explain.

I have a complete script.

It looks like the script I posted above.

On Windows 2000:

When I run the script, and I hover over the label, I don't see the tooltip.

Unless I Alt+Tab to the child window then it will be visible.

On Windows XP:

I run the script and the tooltip works all the time. No problems whatsoever.

Link to comment
Share on other sites

Let me explain.

I have a complete script.

It looks like the script I posted above.

On Windows 2000:

When I run the script, and I hover over the label, I don't see the tooltip.

Unless I Alt+Tab to the child window then it will be visible.

On Windows XP:

I run the script and the tooltip works all the time. No problems whatsoever.

<{POST_SNAPBACK}>

I didn't alt-tab and it is showing up under my Win2000 Edited by jpm
Link to comment
Share on other sites

  • 2 weeks later...

I didn't alt-tab and it is showing up under my Win2000

<{POST_SNAPBACK}>

I'm working with Windows 2000 now.

I have multiple windows open and when I run the script the tooltip shows without any problems.

I used the test script I posted above. Really weird. I'll run my original again and see if this still happens with the latest version.

I installed v3.1.0, ran the script and the tooltip does not show with my original script.

I now did Alt+Tab to the window and it's shown.

Edited by SlimShady
Link to comment
Share on other sites

I'm working with Windows 2000 now.

I have multiple windows open and when I run the script the tooltip shows without any problems.

I used the test script I posted above. Really weird. I'll run my original again and see if this still happens with the latest version.

I installed v3.1.0, ran the script and the tooltip does not show with my original script.

I now did Alt+Tab to the window and it's shown.

<{POST_SNAPBACK}>

I am not sure of what you are testing.

I recheck under 2000 SP3 fr (under Virtual PC 2004) and it still works from my point of view.

I used the script above.

Can you repost the script(s) you are using and the step you follow? :lmao:

Thanks for your cooperation.

Link to comment
Share on other sites

The script I use has 1151 lines :lmao:

Most of the lines are functions.

I'm gonna try to make a small version of my script.

If I can't I'll just attach the full script.

Edit:

I created a test script that has 65 lines.

I discovered the issue in my script.

A WinActivate function activates a hidden window.

When I switch to other windows: sometimes the tooltip is shown sometimes not.

Unexpected behavior.

When I comment out the WinActivate function: the tooltip is shown as soon as I hover over the label. When I switch to other windows: the tooltip is shown when I hover over the label, all the time.

I'll attach the script.

PS.

The label is shown on the window. The window is seen in the right bottom corner.

Just above where the clock usually is.

Edited by SlimShady
Link to comment
Share on other sites

The script I use has 1151 lines o:)

Most of the lines are functions.

I'm gonna try to make a small version of my script.

If I can't I'll just attach the full script.

Edit:

I created a test script that has 65 lines.

I discovered the issue in my script.

A WinActivate function activates a hidden window.

When I switch to other windows: sometimes the tooltip is shown sometimes not.

Unexpected behavior.

When I comment out the WinActivate function: the tooltip is shown as soon as I hover over the label. When I switch to other windows: the tooltip is shown when I hover over the label, all the time.

I'll attach the script.

PS.

The label is shown on the window. The window is seen in the right bottom corner.

Just above where the clock usually is.

<{POST_SNAPBACK}>

do I conclude there is no bug as I retest the "test.au3" and it works fine under 2000? :lmao:
Link to comment
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
 Share

  • Recently Browsing   0 members

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