METHOD PUBLIC VOID SetStyle( INPUT styleFile AS System.IO.FileInfo ):
UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. METHOD PUBLIC VOID SetUser( INPUT name AS CHARACTER, INPUT password AS CHARACTER ): UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. METHOD PUBLIC LOGICAL GetHelpContext( OUTPUT pcHelpFilename AS CHARACTER ): UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. METHOD PUBLIC LOGICAL GetHelpContext( OUTPUT pcHelpFilename AS CHARACTER, OUTPUT pcHelpKeyword AS CHARACTER ): UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. METHOD PUBLIC LOGICAL GetHelpContext( OUTPUT pcHelpFilename AS CHARACTER, OUTPUT poHelpNavigator AS System.Windows.Forms.HelpNavigator ): UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. METHOD PUBLIC LOGICAL GetHelpContext( OUTPUT pcHelpFilename AS CHARACTER, OUTPUT poHelpNavigator AS System.Windows.Forms.HelpNavigator, OUTPUT pcTopicIdentifier AS CHARACTER ): UNDO, THROW NEW Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). END METHOD. |
METHOD PUBLIC VOID SetStyle( INPUT styleFile AS System.IO.FileInfo ):
Infragistics.Win.AppStyling.StyleManager:Load( styleFile:FullName ). appStylistRuntime1:LoadFromStyleManager(). END METHOD. METHOD PUBLIC VOID SetUser( INPUT name AS CHARACTER, INPUT pwd AS CHARACTER ): loginBlock1:loginName:Text = name. loginBlock1:loginPwd:Text = pwd. END METHOD. METHOD PUBLIC LOGICAL GetHelpContext (OUTPUT pcHelpFilename AS CHARACTER): RETURN FALSE. END METHOD. METHOD PUBLIC LOGICAL GetHelpContext (OUTPUT pcHelpFilename AS CHARACTER, OUTPUT pcHelpKeyword AS CHARACTER): RETURN FALSE. END METHOD. METHOD PUBLIC LOGICAL GetHelpContext (OUTPUT pcHelpFilename AS CHARACTER, OUTPUT poHelpNavigator AS HelpNavigator): RETURN FALSE. END METHOD. METHOD PUBLIC LOGICAL GetHelpContext (OUTPUT pcHelpFilename AS CHARACTER, OUTPUT poHelpNavigator AS HelpNavigator, OUTPUT pcTopicIdentifier AS CHARACTER): /* Example */ pcHelpFilename = search('prohelp/masteng.chm'). poHelpNavigator = HelpNavigator:Index. pcTopicIdentifier = ''. RETURN TRUE. END METHOD. |
METHOD PRIVATE LOGICAL ValidateLogin( ):
IF THIS-OBJECT:loginBlock1:loginName:Text = "" THEN DO: MESSAGE "Please enter a login name" VIEW-AS ALERT-BOX. THIS-OBJECT:loginBlock1:loginName:Focus(). RETURN FALSE. END. IF LookupLogin(THIS-OBJECT:loginBlock1:loginName:Text, THIS-OBJECT:loginBlock1:loginPwd:Text) = FALSE THEN DO: MESSAGE "Invalid login name and password combination" VIEW-AS ALERT-BOX. THIS-OBJECT:loginBlock1:loginPwd:Focus(). RETURN FALSE. END. RETURN TRUE. END METHOD. METHOD PRIVATE LOGICAL LookupLogin( name AS CHAR, pwd AS CHAR): IF name = pwd THEN RETURN TRUE. ELSE RETURN FALSE. END METHOD. |
USING Progress.Windows.*.
USING Progress.Lang.*. USING openedge.tutorial.ui.*. USING System.Windows.Forms.*. |