Namespace: Consultingwerk.Windows.Util.Forms
Class 
SampleMessageFormButtonProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Windows.Util.Forms.IMessageFormButtonProvider

File:SampleMessageFormButtonProvider
Purpose:Sample service that provides custom Buttons for the
MessageForm
Syntax:Allows adding buttons to report errors etc.
Description:See http://confluence.consultingwerkcloud.com/wiki/display/SCL/Using+custom+buttons+on+the+MessageForm
for further instructions
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jan 10 14:27:31 CET 2014
Notes:The MessageForm assigns Location and Anchor. All other
properties are to be assigned by the service implementation



Top Method Summary
Options Name Purpose
+ System.Collections.Generic.List <System.Windows.Forms.Button> GetButtonsForMessage (Message) Returns the List of Buttons to be added to the dialog
+ LOGICAL HandleButtonClick (Button, Message) Handles the click event of a custom button


Method Detail
Top

PUBLIC System.Collections.Generic.List <System.Windows.Forms.Button> GetButtonsForMessage (Message)

Purpose: Returns the List of Buttons to be added to the dialog
Notes: Buttons should have a meaningful name

Parameters:
poMessage Consultingwerk.SmartFramework.Message
The Message that is currently being processed
Returns System.Collections.Generic.List <System.Windows.Forms.Button>
The List the System.Windows.Forms.Button objects to be added to the MessageForm
Top

PUBLIC LOGICAL HandleButtonClick (Button, Message)

Purpose: Handles the click event of a custom button
Notes:

Parameters:
poButton System.Windows.Forms.Button
The reference to the Button that was clicked
poMessage Consultingwerk.SmartFramework.Message
The reference to the Message that is currently shown
Returns LOGICAL
Logical value indicating if the Message Form should be closed (True = Close)


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.08.2019 00:09:41