Lesson Details

Author: Trevor DeVore
Last Updated: 18 Jan 18:28

Tags

Revolution
0 comments for this lesson

Create an ANSI Font Option Menu

Create An Option Button

Media_1200697515456_display

Drag an option button from the Tools palette onto a stack.

Write the Script

Media_1200697940429_display

Open the script editor of the option menu and enter the script below. This option menu will respond to the "BuildANSIFontList" messgae and populate the option menu with ANSI fonts.

The script begins by getting all available fonts on the system (1) and sorting them (2). The script then checks the fontlanugage of each font and filters out any fonts that are not ANSI fonts (3) before assigning the font list to the option menu.

Build Font List

Media_1200698073510_display

Build the font list by sending "BuildANSIFontList" to the button using the Message Box.

Preview The List

Media_1200698090368_display

Click on the option menu to view the list of fonts.

Comments (0)

Add your comment

Are you human?