keydown


pfcmain.pbl   >   pfc_u_tvs   >   keydown   

Full name pfc_u_tvs.keydown
Access public
Extend of
Return value
Prototype event keydown(keycode,unsignedlong)

Name Datatype
No Data

Name Datatype
No Data

event keydown;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		keydown
//
//	Arguments:	
//	key			key pressed down
//	keyflags		alt or ctrl pressed
//
//	Description:	Catch the delete key and let pfc handle the delete versus the
//						built in listview deletekey processing
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

If KeyFlags = 0 then
	If Key = KeyDelete! then
		// we can delete through the keyboard if true
		if this.deleteitems then
			// let the pfc delete event delete the item - not the treeview
			message.processed = true
			this.event pfc_deleteitem()
		End if
	End IF
End If

end event

     
Name Owner
No Data

     
Name Owner
pfc_u_tvs.pfc_deleteitem pfc_u_tvs

     
Full name
demopfc

     
Name Scope
No Data