home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of the Best
/
_.img
/
01171
/
dialog.bas
< prev
next >
Wrap
BASIC Source File
|
1990-08-30
|
2KB
|
74 lines
Dim Menu$(3)
Subroutine SetFont()
Dialog 60, 20,160,120, 0, 0, "Set Font"
Dialog 10, 10, 80,100, -1, 10, "Font"
Dialog 20, 20, 60, 12, 11, 12, "Times"
Dialog 20, 32, 60, 12, 12, 12, "Helvetica"
Dialog 20, 44, 60, 12, 13, 12, "Swiss"
Dialog 20, 56, 60, 12, 14, 12, "Script"
Dialog 20, 68, 60, 12, 15, 12, "Roman"
Dialog 20, 80, 60, 12, 16, 12, "System"
Dialog 20, 92, 60, 12, 17, 12, "Courier"
Dialog 100, 16, 30, 10, -1, 5, "H÷he:"
Dialog 140, 14, 12, 12, 21, 18, ""
Dialog 100, 30, 30, 10, -1, 5, "Breite:"
Dialog 140, 28, 12, 12, 22, 18, ""
Dialog 100, 44, 50, 10, 31, 1, "Fett"
Dialog 100, 56, 50, 10, 32, 1, "Kursiv"
Dialog 100, 68, 50, 10, 33, 1, "Unterstr."
Dialog 100, 82, 50, 12, 3, 13, "OK"
Dialog 100, 98, 50, 12, 4, 11, "Abbrechen"
Dialog
_INIT:
Dlgitem 16, 11, 17, 6, chr$(1)
fett%=0
unter%=0
kursiv%=0
_1: 'Enter
_3: 'OK-Button
Dlgitem 21, itemtext$ : h% = val%(itemtext$)
Dlgitem 22, itemtext$ : w% = val%(itemtext$)
Font h%, w%, fett%, kursiv%+unter%*2, FF%
Cls
Print "Ihr Font"
Dialog @
_2: 'Escape
_4:
Dialog @
_11:
_12:
_13:
_14:
_15:
_16:
_17:
item% = getmessage%()
Dlgitem item%, itemtext$
Dlgitem item%, 11, 17, 6, itemtext$
FF%=item%-10
_31:
fett% = 1-fett%
Dlgitem 31, 0, 0, fett%*4+2, chr$(1)
_32:
kursiv% = 1-kursiv%
Dlgitem 32, 0, 0, kursiv%*4+2, chr$(1)
_33:
unter% = 1-unter%
Dlgitem 33, 0, 0, unter%*4+2, chr$(1)
Endsub
REM *** Hauptprogramm ***
Menu$(1)="&Ende"
Menu$(2)="&Font"
Menu$(3)=""
Menu Menu$
_1000:
Stop
_2000:
Gosub SetFont()