|
pfc_setitemattributes
|
|
Full name
|
pfc_u_tvs.pfc_setitemattributes
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_setitemattributes(long,n_ds,long,ref treeviewitem)
|
event pfc_setitemattributes;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_SetItemAttributes
//
// Arguments:
// al_parent The handle to the parent treeview item for this item
// ads_obj Datastore holding treeview item information
// al_row Row in datastore pointing to treeview Item
// atvi_item treeview item about to be inserted.
// Passed by Reference
//
// Returns: Integer
// 1 = Success
// -1 = Failure
//
// Description: Set the default attributes for the treeview item.
//
// Note: Extend this event to change item attributes before it is inserted
// into the treeview
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Check Arguments
If IsNull(ads_obj) or Not IsValid(ads_obj) Then Return -1
If (al_row < 1) or IsNull(al_row) then Return -1
If isvalid(inv_levelsource) then
Return inv_levelsource.event pfc_SetItemAttributes(ads_obj, al_row, atvi_item)
End If
Return -1
end event