open-insight/LSL2/STPROC/COMM_DIALOG_TEXT.txt
Infineon\StieberD 7762b129af pre cutover push
2024-09-04 20:33:41 -07:00

82 lines
1.3 KiB
Plaintext

COMPILE FUNCTION Comm_Dialog_Text(Method, Parm1, Parm2)
/*
Commuter module for Dialog_Text window.
06/09/2004 - John C. Henry, J.C. Henry & Co., Inc.
*/
DECLARE SUBROUTINE Set_Property, End_Dialog, Set_Status, ErrMsg
DECLARE SUBROUTINE obj_Appwindow, Start_Window, Msg
DECLARE FUNCTION Get_Property, Get_Status, Dialog_Box, Popup, Send_Message
EQU CRLF$ TO \0D0A\
$INSERT POPUP_EQUATES
$INSERT APPCOLORS
ErrTitle = 'Error in Comm_Dialog_Text'
ErrorMsg = ''
Result = ''
BEGIN CASE
CASE Method = 'Create' ; GOSUB Create
CASE Method = 'OK' ; GOSUB OK
CASE Method = 'Cancel' ; GOSUB Cancel
CASE Method = 'Close' ; GOSUB Close
CASE 1
ErrMsg(ErrTitle:@SVM:'Unknown method ':QUOTE(Method):' passed to routine.')
END CASE
RETURN Result
* * * * * * *
Create:
* * * * * * *
obj_AppWindow('Create')
WindowTitle = Parm1<1>
TextIn = Parm1<2>
Set_Property(@WINDOW,'TEXT',WindowTitle)
Set_Property(@WINDOW:'.TEXT_BOX','DEFPROP',TextIn)
RETURN
* * * * * * *
Close:
* * * * * * *
* * * * * * *
Cancel:
* * * * * * *
End_Dialog(@WINDOW,'Cancel')
RETURN
* * * * * * *
OK:
* * * * * * *
Text = Get_Property(@WINDOW:'.TEXT_BOX','DEFPROP')
Result = Text
End_Dialog(@WINDOW,Result)
RETURN