|
pfc_selectall
|
|
Full name
|
pfc_u_lvs.pfc_selectall
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_selectall()
|
Name
|
Datatype
|
ll_i
|
long
|
ll_max
|
long
|
llvi_item
|
listviewitem
|
event pfc_selectall;//////////////////////////////////////////////////////////////////////////////
//
// Function: pfc_selectall
//
// Arguments: None
//
// Returns: Integer
//
// Description: Selects (highlights) all items
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
long ll_max
long ll_i
listviewitem llvi_item
// Get the row count.
ll_max = this.TotalItems()
// Prevent flickering and improve performance.
This.SetReDraw ( FALSE )
// Invert row by row.
FOR ll_i = 1 to ll_max
this.GetItem( ll_i, llvi_item )
llvi_item.selected = TRUE
this.SetItem( ll_i, llvi_item )
NEXT
// Prevent flickering and improve performance.
this.SetReDraw ( TRUE )
Return 1
end event
Name
|
Owner
|
dragobject.setredraw |
dragobject
|
listview.getitem |
listview
|
listview.setitem |
listview
|
listview.totalitems |
listview
|