Modify ↓
Opened 17 years ago
Closed 17 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 by , 17 years ago
comment:2 by , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.3.1.0
Note:
See TracTickets
for help on using tickets.

There is also typo in comment
; ajust window width
; adjust window width