Opened 11 years ago
Closed 11 years ago
#2930 closed Bug (No Bug)
Wrong CheckBox position for ListView
| Reported by: | mike2003 | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.13.19 | Severity: | None |
| Keywords: | Cc: |
Description
I found that if i change the font size, the CheckBox position look wrong. like they are between the lines.
this is confusing...
CheckBox alignment should be at the center or on the bottom, but not on top of the text.
All good for $LVS_REPORT - checkbox in center of line.
But wrong for $LVS_LIST or $LVS_SMALLICON
Some pictures (example) are here:
http://www.autoitscript.com/forum/topic/165471-fix-checkbox-position-for-listview/
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$ListView1 = GUICtrlCreateListView("", 40, 32, 457, 297, BitOR($GUI_SS_DEFAULT_LISTVIEW,$LVS_LIST), BitOR($WS_EX_CLIENTEDGE,$LVS_EX_CHECKBOXES))
GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
$ListView1_0 = GUICtrlCreateListViewItem("aaaaaa", $ListView1)
$ListView1_1 = GUICtrlCreateListViewItem("bbbbbbbb", $ListView1)
$ListView1_2 = GUICtrlCreateListViewItem("ccccccccc", $ListView1)
$ListView1_3 = GUICtrlCreateListViewItem("dddddddddd", $ListView1)
$ListView1_4 = GUICtrlCreateListViewItem("eeeeeeeee", $ListView1)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Attachments (2)
Change History (4)
by , 11 years ago
| Attachment: | cb-pos.jpg added |
|---|
by , 11 years ago
| Attachment: | cb-pos2.jpg added |
|---|
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
The problem is not of AutoIt's making - you are using an icon view without icons. If you use icons as shown in bogQ's example you get centred checkboxes.
M23

hes is not using icons that he should be using, added sloppy example on his original topic.