|
of_buttonup
|
|
Full name
|
pfc_n_cst_dwsrv_rowselection.of_buttonup
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_buttonup()
|
Name
|
Datatype
|
li_rc
|
integer
|
protected function integer of_buttonup ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_ButtonUp
//
// Access: Protected
//
// Arguments: None
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Perform the Button Up processing.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Use of constants within services.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc = 1
// Make sure request is valid.
If IsNull(idw_requestor) Or Not IsValid(idw_requestor) Then Return -1
// Process clicked behavior depending on selection option
CHOOSE CASE ii_style
CASE SINGLE
// No Action.
CASE MULTIPLE
// No Action
CASE EXTENDED
// Win 95 style of processing Control-clicks on Extended Selections.
If il_prevclickedrow > 0 Then
li_rc = of_RowSelectExt ( il_prevclickedrow ,ib_prevcntrl, ib_prevshift)
End If
END CHOOSE
// There is no Previous row information.
il_prevclickedrow = 0
ib_prevcntrl = False
ib_prevshift = False
Return li_rc
end function