Modify

#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)

cb-pos.jpg (16.2 KB ) - added by anonymous on Nov 5, 2014 at 4:07:11 PM.
cb-pos2.jpg (13.2 KB ) - added by anonymous on Nov 5, 2014 at 4:07:28 PM.

Download all attachments as: .zip

Change History (4)

by anonymous, on Nov 5, 2014 at 4:07:11 PM

Attachment: cb-pos.jpg added

by anonymous, on Nov 5, 2014 at 4:07:28 PM

Attachment: cb-pos2.jpg added

comment:1 by bogQ, on Nov 5, 2014 at 5:55:42 PM

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

comment:2 by Melba23, on Nov 5, 2014 at 6:21:54 PM

Resolution: No Bug
Status: newclosed

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

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.