1 SUB SMG_GET_DISPLAY_ATTR(LONG Number_Rows, LONG Number_Columns, & LONG Display_Attributes, LONG Video_Attributes, & LONG Vir_Disp_Num) !---------------------------------------------------------------& ! & ! SMG_GET_DISPLAY_ATTR & ! & ! Creation Date: 13-Aug-1986 & ! Author: Ken Messer & ! Purpose: Obtain all the current & ! attributes of a given virtual & ! display. & ! & ! Modification history & ! & ! Date Description of change(s) & ! & !---------------------------------------------------------------& ! & ! Copyright (c) 1986 - Ken Messer, Allied Electronics, Inc., & ! 401 E. 8th St., Ft. Worth, TX 76102 & ! & ! This software may be copied and distributed freely to anyone & ! for non-commerical use provided that this copyright notice is & ! included. & !---------------------------------------------------------------& OPTION TYPE = INTEGER, SIZE = INTEGER LONG %include "SMG$LIBRARY:SMG.DFN" DECLARE LONG RS EXTERNAL LONG CONSTANT SS$_Normal EXTERNAL LONG FUNCTION SMG$Get_Display_Attr EXTERNAL STRING FUNCTION Get_Error_Message(LONG) !---------------------------------------------------------------& ! & ! M a i n P r o g r a m L o g i c & ! & !---------------------------------------------------------------& RS = SMG$Get_Display_Attr(Display_id(Vir_Disp_Num), & Number_Rows, Number_Columns, Display_Attributes, & Video_Attributes,) IF RS AND SS$_Normal = 0 THEN PRINT Get_Error_Message(RS) STOP END IF Done: SUBEXIT END SUB