|
pfc_messagerouter
|
|
Full name
|
pfc_w_master.pfc_messagerouter
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_messagerouter(string)
|
Name
|
Datatype
|
lgo_focus
|
graphicobject
|
event pfc_messagerouter;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_messagerouter
//
// Arguments:
// as_message message (event notification) to send
//
// Returns: integer
// 1 = message successfully sent
// 0 = no receivers recognized the message
// -1 = error
//
// Description:
// This event routes a message (event notification)
// to the appropriate object.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
graphicobject lgo_focus
// Check argument
If IsNull (as_message) or Len (Trim (as_message)) = 0 Then
Return -1
End If
// Try sending the message to this window, if successful exit event.
If This.TriggerEvent (as_message) = 1 Then Return 1
// Try sending the message to the current control, if successful exit event.
lgo_focus = GetFocus()
If IsValid (lgo_focus) Then
If lgo_focus.TriggerEvent (as_message) = 1 Then Return 1
End If
// Try sending the message to the last active datawindow, if successful exit event.
If IsValid (idw_active) Then
If idw_active.TriggerEvent (as_message) = 1 Then Return 1
End If
// No objects recognized the message
Return 0
end event
Name
|
Owner
|
powerobject.triggerevent |
powerobject
|
systemfunctions.getfocus |
systemfunctions
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|