Jump to content

ToolTips showing on wrong tab.. Bug?


corz
 Share

Recommended Posts

#include <GuiTab.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

AutoItSetOption("GUIOnEventMode", 1)


global $tabspace, $tabspace_opt, $old_tab, $tabs[3] = [2], $opt_tabs[6] = [5]
global $width = 400, $height = 300, $x = -1, $y = -1


$ExampleGUI = GUICreate("example", $width, $height, $x, $y, BitOr($WS_CAPTION, $WS_SYSMENU, $WS_MINIMIZEBOX, $WS_SIZEBOX))
GUISetOnEvent($GUI_EVENT_CLOSE, "DoExit", $ExampleGUI)


$opt_gui = GUICreate("opt_child", $width, $height-50, 3, 5, BitOR($WS_CHILD, $WS_TABSTOP), -1, $ExampleGUI)
$tabspace_opt = GUICtrlCreateTab(3, 2, $width-20, $height-20, BitOr($TCS_BUTTONS, $TCS_FLATBUTTONS, $TCS_TOOLTIPS, $TCS_HOTTRACK, $WS_CHILD, $WS_TABSTOP))

$opt_tabs[1] = GUICtrlCreateTabItem(" Option 1 ")
$opt_tabs[2] = GUICtrlCreateTabItem(" Option 2 ")
$opt_tabs[3] = GUICtrlCreateTabItem(" Option 3 ")
$opt_tabs[4] = GUICtrlCreateTabItem(" Option 4 ")
$opt_tabs[5] = GUICtrlCreateTabItem(" Option 5 ")

GUICtrlCreateTabItem("")

GUISwitch($ExampleGUI)

$tabspace = GUICtrlCreateTab(3, 2, $width, $height-5, BitOr($TCS_BOTTOM, $TCS_BUTTONS, $TCS_TOOLTIPS, $TCS_HOTTRACK, $WS_TABSTOP))
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)

$tabs[1] = GUICtrlCreateTabItem(" Main Tab.. ")

$tabs[2] = GUICtrlCreateTabItem(" Options.. ")

GUICtrlCreateTabItem("")


GUICtrlSetTip($tabs[1], " Tip for the main tab.. ")
GUICtrlSetTip($tabs[2], " Tip for the options tab.. ")

GUICtrlSetTip($opt_tabs[1], " Tip for options tab 1.. ")
GUICtrlSetTip($opt_tabs[2], " Tip for options tab 2.. ")
GUICtrlSetTip($opt_tabs[3], " Tip for options tab 3.. ")
GUICtrlSetTip($opt_tabs[4], " Tip for options tab 4.. ")
GUICtrlSetTip($opt_tabs[5], " Tip for options tab 5.. ")


GUISetState(@SW_SHOW, $ExampleGUI)


while true
    local $new_tab =  GUICtrlSendMsg($tabspace, $TCM_GETCURSEL, 0, 0)
    if $new_tab <> $old_tab then
        if $new_tab = 1 then
            GUISetState(@SW_SHOW, $opt_gui)
        else
            GUISetState(@SW_HIDE, $opt_gui)
            GUISetState(@SW_SHOW, $ExampleGUI)
        endif
        $old_tab = $new_tab
    endif
    Sleep(100)
wend


func DoExit()
    exit
endfunc

 

As you can see, the tooltip for the options tabs 1 & 2 appear when hovering your pointer over the main two tabs.

Am I doing something wrong? Or is this a bug?

 

;o) Cor

nothing is foolproof to the sufficiently talented fool..

Link to comment
Share on other sites

  • Moderators

corz,

This does not happen in Beta 3.3.15.0, but does in release 3.3.14.0. So it seems that is already fixed.

M23

 

Edit: https://www.autoitscript.com/trac/autoit/ticket/2869

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

corz,

No - but as we have only just had a full release I would not expect another in the very near future. However, I often wonder why people have such a dislike of using the Betas - most of the changes are bug fixes and improvements so they are not that different.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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

×
×
  • Create New...