Skip to content

ListView issues: LeftBorder #44

@hoppfrosch

Description

@hoppfrosch

Following issue with ListView:
I've got a single column Listview.

Class CBasicWindow Extends CGUI
{
   ;...
lvItems := this.AddControl("ListView", "lvItems", "", "TITLE:")
;...
__New(data)
{
;...
this.lvItems.ModifyCol(1,floor(this.lvItems.Width * 0.995),"")

this.lvItems.Items.Clear()
Loop, parse, data, `n 
{
   this.lvItems.Items.Add("",A_LoopField)
}
this.Show("")
;...
}

This results in following output Image

Issues are best illustrated, looking at the image:

  • The border on the left side of my listview items seems to big in my personal opinion (green line in my image): the items should start right on the left border of the listview ...
  • Unless I've explicitly given a title for the column (lvItems := this.AddControl("ListView", "lvItems", "", "TITLE:")), the title is not shown! Omitting this.lvItems.ModifyCol(1,floor(this.lvItems.Width * 0.995),"") the title is shown, but the column takes only a part of the width of the complete Listview. Modifying the column with a certain width brings the column to the desired width, but the title does not show up anymore ....

Conclusion:

  • First column should start right on the left border of listview
  • Title should show up correctly after modifying the Column width
  • The initial column width of all columns should spawn the complete width of the ListView (for example with two columns each column should initially take 50% of the complete width (and not a fixed width - as it probably does now ...))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions