LOULOU Posted January 28, 2005 Posted January 28, 2005 GUICtrlSetTip seems not working with French version of Windows 2000 professional.
jpm Posted January 28, 2005 Posted January 28, 2005 GUICtrlSetTip seems not working with French version of Windows 2000 professional.<{POST_SNAPBACK}>can you post an example so I can reproduce?Thanks
LOULOU Posted January 29, 2005 Author Posted January 29, 2005 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
jpm Posted January 29, 2005 Posted January 29, 2005 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.
SlimShady Posted January 29, 2005 Posted January 29, 2005 (edited) 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 January 29, 2005 by SlimShady
jpm Posted January 29, 2005 Posted January 29, 2005 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
SlimShady Posted January 30, 2005 Posted January 30, 2005 *I thought I mentioned...* I don't have Windows 2000 here. But I can extract the code into a small test script.
jpm Posted January 30, 2005 Posted January 30, 2005 *I thought I mentioned...*I don't have Windows 2000 here.But I can extract the code into a small test script.<{POST_SNAPBACK}>put it here or email me please, Thanks
SlimShady Posted January 30, 2005 Posted January 30, 2005 Here it is. I can't test this on Windows 2000 so you will have to do it. expandcollapse popup#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
jpm Posted January 30, 2005 Posted January 30, 2005 Here it is.I can't test this on Windows 2000 so you will have to do it.<{POST_SNAPBACK}>Thanks for your help.I did the check under Win2000 SP3 (FR) and Win2000 SP4 (US) it works fine the tip show up
SlimShady Posted January 30, 2005 Posted January 30, 2005 Thanks for your help.I did the check under Win2000 SP3 (FR) and Win2000 SP4 (US) it works fine the tip show up <{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.
jpm Posted January 30, 2005 Posted January 30, 2005 (edited) 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 January 30, 2005 by jpm
SlimShady Posted February 9, 2005 Posted February 9, 2005 (edited) 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 February 9, 2005 by SlimShady
jpm Posted February 9, 2005 Posted February 9, 2005 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? Thanks for your cooperation.
SlimShady Posted February 9, 2005 Posted February 9, 2005 (edited) The script I use has 1151 lines 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 February 9, 2005 by SlimShady
jpm Posted February 9, 2005 Posted February 9, 2005 The script I use has 1151 lines 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?
SlimShady Posted February 9, 2005 Posted February 9, 2005 I don't believe there's a bug in the AutoIt source. It's just Windows behavior. At least I discovered the problem in my script.
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