The attached program uses the ListView control. The "Show Item" button is
enabled when an item in the list is selected. After the button is pressed,
it is disabled. 

The following behaviors may be bugs (code or documentation):


1. Select an item, then press the "Show Item" button. The selected item
*appears* to be de-selected. However, when focus is put on the ListView by
clicking on a column header, the selection re-appears. I expected the item
to remain shown as selected even when focus is not on the ListView control
(e.g. as in a File Explorer window with a file selected then you click say
"search"). It could be that this behavior is mandated by the underlying
Windows control, and hence ooDialog can do nothing about it. If not, it's a
possible bug or a possible future enhancement.  


2. ~insertColumnPX 

The first param, column number, seems to be ignored. It seems to be the
sequence with which ~insertColumnPX is invoked that counts. Code in the
attached is: 

    lvItems~insertColumnPX(6,"Number",60,"LEFT")
    lvItems~insertColumnPX(5,"Name",150,"LEFT")
    lvItems~insertColumnPX(3,"Zip",50,"LEFT")

The columns are inserted at positions 0, 1, 2.


3. ~addRow

The first param (item) does not seem to work - the following code adds the
rows into the first three lines of the report-style list rather than into
lines 5, 4, and 3 ('item' is zero-based):

    lvItems~addRow(4, ,"CU025","Slodget, case of 24", "RG22 5XL")
    lvItems~addRow(3, ,"DX210","Driblet, 5in, 10-pack, pick-up only",
"021956")
    lvItems~addRow(2, ,"CU003","Widget, 5in")

Note: the style of the ListView control is set to "LVS_SORTASCENDING" in the
.rc file, and the list is sorted - as would be expected. When this style is
removed, the above three items are inserted in the sequence shown by the
code, that is, 0, 1, 2 but not 4, 3, 2.  


Regards,
Oliver

Attachment: TestListView.rex
Description: Binary data

Attachment: TestListView.rc
Description: Binary data

Attachment: TestListView.h
Description: Binary data

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to