home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pmpopup2.zip
/
PMPopUp2.eng
next >
Wrap
Text File
|
1995-08-31
|
6KB
|
171 lines
PMPopup/2
-----------
PmPopup/2 creates a configurable dialog box für IBM OS/2 upwards of V.2.1 with
up to 255 characters text (also on several lines), up to three buttons and a
timer function. On leaving the dialog an ErrorLevel will be returned.
Parameter:
"message"
The message which the box should display. ( in double quotation
marks )
The message text will automatically be wrapped
To insert manual 'newlines' into the message, a Tilda (~)
is inserted at the desired position.
eg: "line 1~line 2"
"title"
The title of the dialog box ( in double quotation marks )
eg: "This is the title line"
/B1:"text"
Establishes a button in the lower left hand corner with the
given text (in double quotation marks). When this button in the
dialog is pressed, the program outputs the Errorlevel 10.
A Tilda (~) in the button text defines a Hotkey.
eg: /b1:"~OK" (Hotkey O)
/B2:"text"
as seen above:
The button is centrally placed and generates the Errorlevel 20
/B3:"text"
as seen above:
The button is placed on the right hand side and outputs
Errorlevel 30
/T:time
A timer will be created, der which will complete the dialog
after the number of seconds given in 'time'. Errorlevel 40 will
be generated.
eg: /t:5
Due to system restrictions of OS/2 2.xx (not WARP) the time
must not exceed 65 seconds.
/SM
The dialog window is SYSTEM MODAL. No other window can be se-
lected until the dialog is ended.
/F:"size.font name"
Here a system font type can be selected for the text window.
( in double quotation marks )
eg: /f:"8.Helv"
/A:arrangement
The arrangement the message:
L left hand side
C centered
R right hand side
Note: The parameter (L,C,R) can only be entered WITHOUT double
quotation marks.
eg: /a:c (centered)
/BELL
A short double tone is generated upon popping up.
defaults:
message
A four line help text
Title
"PMPopUp/2"
Buttons
If no button and and no timer are given, button 2 will be
generated with the text "OK".
Timer
Standard value 0.
Font
10.System Proportional
Arrangement
bound to the left hand side
Beep
No Beep
Errorlevel:
10 The left button was pressed
20 The middle button was pressed
30 The right button was pressed
40 Timeout
Examples:
1. pmpopup2
Opens a dialog box with the title "PMPopUp/2", the Help text
and centrally placed OK-button
2. pmpopup2 "This is a oneliner" /a:c
Opens a dialog box with the title "PMPopUp/2", the text "This is
a oneliner" (centered) and a centrally placed OK-button.
3. pmpopup2 "This is a threeliner~...~Hello!" "testrun" /b1:"ohh!"
/b3:"so!"
Opens a dialog box mit with the title "testrun", three lines of
text (because of ~ in the text), a button on the left hand side
("ohh") and a button on the right hand side ("so!")
4. pmpopup2 "This box will close in 5 seconds." "testrun 4" /t:5 /a:r
Opens a dialog box with the default-title, a line of text
(bound to the right hand side), without buttons. This Box
closes automatically after 5 seconds.
5. pmpopup2 "This box will close in 15 seconds.~or over the button."
"testrun" /t:15 /b2:"~immediately off!" /f:"8.Helv" /sm /bell
Opens a dialog box with the title "testrun", a twoline-
text in the font type Helv, 8 pixels in size, a centrally placed
button with Hotkey 'S' and a 15-second-timer. The dialog
is system modal, no other window on the desktop can be chosen.
An acoustic signal is being generated.
Files:
PMPopUp2.Exe
the program
PMPopUp2.Ger
the german readme file
PMPopUp.Eng
the english readme file
TestPop.Cmd
a example-program to explain usage
...the usual:
(c) 1995 Christian Biskup, Bonn
This program is freeware. It can be freely distributed, so long as the
package remains complete and the accompanying Texts and the Copyright-
line s not changed.
The Author will be neither implicitly or explicitly responsible for any
damage done due to the use of this program.
FYI: This program was developed using SpeedPascal/2 ( (c) by SpeedSoft
Gbr, Chemnitz, GER) and the OPML.
Comments and problems by E-Mail:
Internet: christian.biskup@bonn.netsurf.de
Compuserve: 100034,2123
Version:
V.1.0 First Release
with thanks to:
Ulrich Sturmberg for invaluable hints on PM-Programming.
Hugh Hayes for translating this help text.