COMPILE FUNCTION Comm_Epi_Susceptor(Instruction, Parm1) /* Commuter module for Epi_Susceptor Window 10/31/2005 - John C. Henry, J.C. Henry & Co., Inc. */ DECLARE SUBROUTINE Set_Property, End_Dialog, Send_Event, Set_Status, Center_Window,Print_Vend_CofA DECLARE SUBROUTINE ErrMsg, Send_Message, Set_Property, Send_Event, Btree.Extract, obj_AppWindow DECLARE FUNCTION Get_Property, Get_Status, Dialog_Box, Utility, Center_Window, Popup, Collect.Ixvals DECLARE FUNCTION Send_Message $INSERT POPUP_EQUATES $INSERT APPCOLORS EQU CRLF$ TO \0D0A\ EQU COL$POCKET TO 1 EQU COL$ZONE TO 2 EQU COL$USAGE TO 3 ErrTitle = 'Error in Comm_Epi_Susceptor' ErrorMsg = '' Result = '' BEGIN CASE CASE Instruction = 'Create' ; GOSUB Create CASE Instruction = 'Refresh' ; GOSUB Refresh CASE Instruction = 'Clear' ; GOSUB Clear CASE Instruction = 'Read' ; GOSUB Read CASE Instruction = 'Write' ; GOSUB Write CASE Instruction = 'Delete' ; GOSUB Delete CASE Instruction = 'LUConfigID' ; GOSUB LUConfigID CASE 1 ErrorMsg = 'Unknown Instruction passed to routine.' ErrMsg(ErrorMsg) END CASE RETURN Result * * * * * * * Create: * * * * * * * Center_Window(@WINDOW) EQU DROPDOWN_STYLE$ TO 131072 ReactorStyles = Send_Message(@WINDOW:'.POCKET_NO','COLSTYLE',0,'') ReactorStyles = BitOr(ReactorStyles,DROPDOWN_STYLE$) Send_Message(@WINDOW:'.POCKET_NO','COLSTYLE',0,ReactorStyles) Send_Message(@WINDOW:'.POCKET_NO','COLFORMAT',COL$USAGE,'':@VM:'TEST') IF Parm1 NE '' THEN obj_AppWindow('LoadFormKeys',@WINDOW:@RM:Parm1) END GOSUB Refresh RETURN * * * * * * * Read: * * * * * * * GOSUB Refresh RETURN * * * * * * * Clear: * * * * * * * * * * * * * * Refresh: * * * * * * * * QBF buttons Ctrls = @WINDOW:'.QBF_FIRST_FIX':@RM ; Props = 'ENABLED':@RM Ctrls := @WINDOW:'.QBF_PREV_FIX':@RM ; Props := 'ENABLED':@RM Ctrls := @WINDOW:'.QBF_ABS_FIX':@RM ; Props := 'ENABLED':@RM Ctrls := @WINDOW:'.QBF_NEXT_FIX':@RM ; Props := 'ENABLED':@RM Ctrls := @WINDOW:'.QBF_LAST_FIX':@RM ; Props := 'ENABLED':@RM Ctrls := @WINDOW:'.QBF_STOP_FIX' ; Props := 'ENABLED' IF Get_Property(@WINDOW,'QBFLIST') = '' THEN Vals = 0:@RM:0:@RM:0:@RM:0:@RM:0:@RM:0 END ELSE Vals = 1:@RM:1:@RM:1:@RM:1:@RM:1:@RM:1 END Set_Property(Ctrls,Props,Vals) * Turn edit table symbolic column backgrounds to green ETSymbolics = Get_Property(@WINDOW,'@ET_SYMBOLICS') ;* Loaded during 'Create' in obj_Appwindow ETCtrls = ETSymbolics<1> ETCols = ETSymbolics<2> FOR I = 1 TO COUNT(ETCtrls,@VM) + (ETCtrls NE '') ETCtrl = ETCtrls<1,I> ETList = Get_Property(ETCtrl,'LIST') FOR Line = 1 TO COUNT(ETList,@FM) + (ETList NE '') IF ETList NE '' THEN FOR N = 1 TO COUNT(ETCols<1,I>,@SVM) + (ETCols<1,I> NE '') stat = Send_Message(ETCtrl,'COLOR_BY_POS',ETCols<1,I,N>,Line,GREEN$) NEXT N END NEXT I NEXT I RETURN RETURN * * * * * * * Write: * * * * * * * Result = 1 ;* Security hook RETURN * * * * * * * Delete: * * * * * * * ErrMsg('Records may not be modified.') Result = 0 ;* Security hook RETURN * * * * * * * LUConfigID: * * * * * * * EpiSusID = Popup(@WINDOW,'','EPI_SUSCEPTOR') IF Get_Status(errCode) THEN ErrMsg(errCode) END IF EpiSusID NE '' THEN obj_Appwindow('LUValReturn',EpiSusID:@RM:@WINDOW:'.CONFIG_ID') ;* Loads form key RETURN