Modify

Opened 4 years ago

Closed 4 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 Changed 4 years ago by Jpm

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

comment:2 Changed 4 years ago by anonymous

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 Changed 4 years ago by Jpm

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

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

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 ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.