Opened 15 years ago

Closed 15 years ago

#683 closed Bug (No Bug)

Setting new text with _GUICtrlTab_SetItemText

Reported by: Josbe Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: _GUICtrlTab_SetItemText, _GUICtrlTab_SetItem Cc:


Setting text with _GUICtrlTab_SetItemText() doesn't update the width of tabitem. The bug it seems produced from _GUICtrlTab_SetItem.
Example taken from Helpfile:

#include <GuiConstantsEx.au3>
#include <GuiTab.au3>

Opt('MustDeclareVars', 1)

$Debug_TAB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work


Func _Main()
	Local $hTab

	; Create GUI
	GUICreate("Tab Control Set Item Text", 400, 300)
	$hTab = GUICtrlCreateTab(2, 2, 396, 296)

	; Add tabs
	_GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
	_GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
	_GUICtrlTab_InsertItem($hTab, 2, "Tab 3")
	; Get/Set tab 1 text
	_GUICtrlTab_SetItemText($hTab, 0, "New Text")
	MsgBox(4160, "Information", "Tab 1 text: " & _GUICtrlTab_GetItemText($hTab, 0))

	; Loop until user exits
EndFunc   ;==>_Main

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Gary

  • Resolution set to No Bug
  • Status changed from new to closed

Already fixed in beta

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Gary.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.