home *** CD-ROM | disk | FTP | other *** search
-
- 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, "Height:"
- Dialog 140, 14, 12, 12, 21, 18, "48"
- Dialog 100, 30, 30, 10, -1, 5, "Width:"
- Dialog 140, 28, 12, 12, 22, 18, "30"
- Dialog 100, 44, 50, 10, 31, 1, "Bold"
- Dialog 100, 56, 50, 10, 32, 1, "Italic"
- Dialog 100, 68, 50, 10, 33, 1, "Under"
- Dialog 100, 82, 50, 12, 3, 13, "OK"
- Dialog 100, 98, 50, 12, 4, 11, "Cancel"
- Dialog
- _INIT:
- Dlgitem 16, 11, 17, 6, chr$(1)
- bold%=0
- under%=0
- italic%=0
- _1: 'Enter
- _3: 'OK-Button
- Dlgitem 21, itemtext$ : h% = val%(itemtext$)
- Dlgitem 22, itemtext$ : w% = val%(itemtext$)
- Font h%, w%, bold%, italic%+under%*2, FF%
- Cls
- Print "Your Font"
- Dialog @
- _2: 'Escape
- _4:
- Dialog @
- _11:
- _12:
- _13:
- _14:
- _15:
- _16:
- _17:
- item% = GetMessage%()
- Dlgitem item%, 11, 17, 4, chr$(1)
- FF%=item%-10
- _31:
- bold% = 1-bold%
- Dlgitem 31, 0, 0, bold%*4, chr$(1)
- _32:
- italic% = 1-italic%
- Dlgitem 32, 0, 0, italic%*4, chr$(1)
- _33:
- under% = 1-under%
- Dlgitem 33, 0, 0, under%*4, chr$(1)
- Endsub
-
- REM *** Main program ***
-
- Menu$(1)="E&xit"
- Menu$(2)="&Font"
- Menu$(3)=""
-
- Menu Menu$
-
- _1000:
- Stop
- _2000:
- Gosub SetFont()
-