|
clicked
|
|
Full name
|
pfc_u_dw.clicked
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event clicked()
|
Name
|
Datatype
|
lb_disablelinkage
|
boolean
|
li_rc
|
integer
|
event clicked;//////////////////////////////////////////////////////////////////////////////
// Event: clicked
// Description: DataWindow clicked
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
// 6.0 Added Linkage service notification
// 6.0 Introduced non zero return value
// 7.0 Do not bypass processing on linkage failure.
// 7.0 Linkage service should not fire events when querymode is enabled
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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
boolean lb_disablelinkage
// Check arguments
if IsNull(xpos) or IsNull(ypos) or IsNull(row) or IsNull(dwo) then return
// Is Querymode enabled?
if IsValid(inv_QueryMode) then lb_disablelinkage = inv_QueryMode.of_GetEnabled()
if not lb_disablelinkage then
if IsValid (inv_Linkage) then
if inv_Linkage.Event pfc_clicked ( xpos, ypos, row, dwo ) = &
inv_Linkage.PREVENT_ACTION then
// The user or a service action prevents from going to the clicked row.
return 1
end if
end if
end if
if IsValid (inv_RowSelect) then inv_RowSelect.Event pfc_clicked ( xpos, ypos, row, dwo )
if IsValid (inv_Sort) then inv_Sort.Event pfc_clicked ( xpos, ypos, row, dwo )
end event