Skip to content

Document what Align Left does for ListView objects #729

@dyavc

Description

@dyavc

Page on which the enhancement should be made
https://docs.dyalog.com/20.0/object-reference/objects/listview/
https://docs.dyalog.com/20.0/object-reference/properties/align/

Describe the enhancement you would like
Please Document what Align Left does for ListView objects

something like: It groups the icons on the left side of the listview in Icon and SmallIcon View.

⍝ To see what it does, in Dyalog for MS Windows:
)xload wtutor.dws
arg←1
'F' ⎕WC 'Form' 'ListView Object' (60 40)(25 50)
'F.I1' ⎕WC'ImageList' ('Size' 32 32)
(⊂'F.I1.') ⎕WC¨(⊂'Icon' ''),¨ ↓⍉↑ ∆FLAGBITS ∆FLAGCMAP ∆FLAGMASK
II←⍳⍴∆COUNTRIES ⍝ 1 2 3 4 5 ...
:if arg = 1
'F.L' ⎕WC 'ListView' ∆COUNTRIES(0 0)(100 100)('align' 'Left')('ImageList' 'F.I1') ('ImageIndex' II)
:else
'F.L' ⎕WC 'ListView' ∆COUNTRIES(0 0)(100 100)('ImageList' 'F.I1') ('ImageIndex' II)
:endif

⍝ To see what the default is, set arg←0 and re-run the above code.

Additional information
User did not know what Align did for ListViews

I answered the user with this:

If you set Align 'Left' on a ListView (only on the same line as ⎕WC), it sets this windows style on it:

From this website, learn.microsoft.com/en-us/windows/win32/controls/list-view-window-styles
LVS_ALIGNLEFT
Items are left-aligned in icon and small icon view.

You cannot set Align with ⎕WS on a ListView.

Metadata

Metadata

Assignees

No one assigned

    Labels

    win-obj-ref-guideDocument: Dyalog for Microsoft Windows Object Reference Guide

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions