tldm-universe/Ardent/UV/APP.PROGS/HELP.BOX.B
2024-09-09 17:51:08 -04:00

42 lines
1.4 KiB
Brainfuck
Executable File

*******************************************************************************
*
* HELP.BOX.B - This widget allows the user to create a help message box
* on the screen with on button.
*
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 05/15/96 18330 LDG Changed LEN() function to LENDP() for NLS DBCS.
* 05/05/91 7673 DTM Correctly put in 6.2.1.4
* 03/14/91 7673 DTM Routine first created and admin'd.
*******************************************************************************
SUBROUTINE HELP.BOX.B(start.line, max.lines,width,textstr)
Button.array=""
Button.array<1>=1
Button.array<2>="Close"
selval=0
IF start.line=0 THEN start.line=5
IF width=0 THEN width=50
IF max.lines=0 THEN
count=LENDP(textstr)/width
IF count > 8 THEN count = 8
max.lines=count+3
END
CALL *CHOICE.BOX.B(start.line,max.lines,width,textstr, Button.array,selval,"")
RETURN
END