Modify

Opened 15 years ago

Closed 15 years ago

#958 closed Bug (Fixed)

_ArrayDisplay - bad centering of window after adjust its width

Reported by: Zedna Owned by: Gary
Milestone: 3.3.1.0 Component: Standard UDFs
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

Inside this function there is code for adjusting width of window according to columns width but after this adjusting window is not centered on the screen.

original code:

	; ajust window width
	$iWidth = 0
	For $i = 0 To $iSubMax + 1
		$iWidth += GUICtrlSendMsg($hListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0)
	Next
	If $iWidth < 250 Then $iWidth = 230
	WinMove($hGUI, "", Default, Default, $iWidth + 20)

corrected code:

	; ajust window width
	$iWidth = 0
	For $i = 0 To $iSubMax + 1
		$iWidth += GUICtrlSendMsg($hListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0)
	Next
	If $iWidth < 250 Then $iWidth = 230
	$iWidth += 20
	WinMove($hGUI, "", (@DesktopWidth - $iWidth)/2, Default, $iWidth)

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Zedna

There is also typo in comment

; ajust window width

; adjust window width

comment:2 Changed 15 years ago by Gary

  • Milestone set to 3.3.1.0
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.0

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.