Modify

Opened 9 years ago

Closed 9 years ago

#3519 closed Bug (No Bug)

_GUICtrlStatusBar_SetText() - cannot set text to the last part, if it defined with "-1"

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description

function cannot set text to the last part, if it defined with "-1" in _GUICtrlStatusBar_SetParts(). If you set $aParts[n] = @GUIWidth, it work fine.

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, 9 years ago

Please follow guidekines for writing a ticket as I cannot reproduce what you are saying with what you wrote

comment:2 by anonymous, 9 years ago

works:

	$hPNXML_StatusBar = _GUICtrlStatusBar_Create($hPNXML_PatternGUI)
	Dim $StatusBar_PartsWidth[10] = [124, 192, 325, 375, 736, 864, 964, 1280]
	_GUICtrlStatusBar_SetParts($hPNXML_StatusBar, $StatusBar_PartsWidth)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "111", 0)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 1)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 2)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 3)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 4)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "555", 5)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 6)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "OK", 7)
	_GUICtrlStatusBar_SetMinHeight($hPNXML_StatusBar, 24)

not works:

	$hPNXML_StatusBar = _GUICtrlStatusBar_Create($hPNXML_PatternGUI)
	Dim $StatusBar_PartsWidth[10] = [124, 192, 325, 375, 736, 864, 964, -1]
	_GUICtrlStatusBar_SetParts($hPNXML_StatusBar, $StatusBar_PartsWidth)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "111", 0)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 1)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 2)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 3)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 4)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "555", 5)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "", 6)
	_GUICtrlStatusBar_SetText($hPNXML_StatusBar, "not OK", 7)
	_GUICtrlStatusBar_SetMinHeight($hPNXML_StatusBar, 24)

comment:3 by J-Paul Mesnage, 9 years ago

Resolution: No Bug
Status: newclosed

So your definition is wrong it must be $StatusBar_PartsWidth[8]

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.