Modify

Opened 16 years ago

Closed 16 years ago

#683 closed Bug (No Bug)

Setting new text with _GUICtrlTab_SetItemText

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

Description

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

_Main()

Func _Main()
	Local $hTab

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

	; 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
	Do
	Until GUIGetMsg() = $GUI_EVENT_CLOSE
	GUIDelete()
EndFunc   ;==>_Main

Attachments (0)

Change History (1)

comment:1 Changed 16 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

Action
as closed The owner will remain Gary.
Author


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

 
Note: See TracTickets for help on using tickets.