ListView use (taken from PB help)

xiaoxiao2021-03-17  194

This Example Assigns Display Values ​​To Three Column IN A Report View for Three LV_List ListView Items:

ListviewItem L_LVI

Integer li_count, li_index

For li_index = 1 to 3

Li_count = li_count 1

LV_1ist.additem ("category" String (li_index), 1)

NEXT

LV_List.AddColumn ("Composition", Left!, 860)

LV_List.AddColumn ("album", left!, 610)

LV_List.AddColumn ("Artist", Left!, 710)

LV_List.SetItem (1, 1, "st. thomas")

LV_List.SetItem (1, 2, "the bridge")

LV_List.SetItem (1, 3, "Sonny rollins")

LV_List.SetItem (2, 1, "so what")

LV_List.SetItem (2, 2, "Kind of Blue")

LV_List.SetItem (2, 3, "Miles Davis")

LV_List.SetItem (3, 1, "Goodbye, Porkpie Hat")

LV_List.SetItem (3, 2, "Mingus-Ah-UM")

LV_List.SetItem (3, 3, "charles mingus")

Applies TO

ListView Controls

Description

A ListView Has Four Ways to Display ITS Items:

? Large icon view Items are arranged from left to right and the user can move items around when drag and drop is enabled. Each item's picture is taken from the large picture list and the item label is below the picture.

SMALL ICON View Same As Large Icon View Except Each Item's Picture Is Taken from The SMALL PICTURE List and The item Label Is To The Right of the Picture.

List View Items Are Arranged from top to bottom. Each Item's Picture Is Taken from The Small Picture Array.

. Report View Items Are Arranged From Top To Bottom with One or More Column of Information for Each Item. You Must Write A Script To Set Up The Column.

USAGE

In a painter

? TO SELECT The View Type:

SELECT The Desired View Type from The View Drop-Down List on The General Page of The Control's Properties View.in Scripts

The View Property Takes a value of the listviewview.

The Following Line Specifies That Small Pictures Appear for the item in the listbox.

lv_1.view = listviewsmallicon!

转载请注明原文地址:https://www.9cbs.com/read-129570.html

New Post(0)