Modify ↓
Opened 17 years ago
Closed 13 years ago
#1024 closed Bug (Fixed)
GUICtrlSetTip for tabitems sets incorrectly in certain situations
| Reported by: | Lazycat | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.9.16 | Component: | AutoIt |
| Version: | 3.3.1.1 | Severity: | None |
| Keywords: | Cc: |
Description
For example, we have a tab with three tabitems. Setting single tips to second and following tabitems have strange behaviour.
$Form1 = GUICreate("Form1", 633, 454, 192, 114)
$Tab1 = GUICtrlCreateTab(184, 152, 289, 193)
GUICtrlSetTip(-1, "Tab Tip")
$TabItem1 = GUICtrlCreateTabItem("TabItem 1")
;GUICtrlSetTip(-1, "TabItem 1 Tip")
$TabItem2 = GUICtrlCreateTabItem("TabItem 2")
;GUICtrlSetTip(-1, "TabItem 2 Tip")
$TabItem3 = GUICtrlCreateTabItem("TabItem 3")
GUICtrlSetTip(-1, "TabItem 3 Tip")
GUICtrlCreateTabItem("")
- If you set single tip to only first tabitem - all ok, only first tabitem have a tip.
- If you set single tip to second or third tabitem, then all previous tabitems have the same tip (this wrong, code above show this).
- But if you set first and third tabs, then second tab have not tip, as expected.
So, problem appear only when first tabitem have not tip set.
Also, when single tip is set to any tabitem, global tab tip not showing anymore on other tabs. Maybe this by design, though.
Attachments (0)
Change History (5)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , 13 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | assigned → closed |
comment:4 by , 13 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
comment:5 by , 13 years ago
| Milestone: | → 3.3.9.16 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [8426] in version: 3.3.9.16
Note:
See TracTickets
for help on using tickets.

It looks like the tip for tabitem is working only if they are defined just after the tabitem creation and also the tip for first tabitem must be defined (with "" if you don't want one).
The global tab tip is destroyed when a tabitem tip is set.
That the best I can understand on how the MSDN API are working.
I intend to document it.