Menu.ShowFile
Description
- Shows the contents of a file as a menu.
Syntax
Parameters
- fpath
- (string) path to the file containing the menu
Examples
- Menu.ShowFile(?"c:\mine\stuff.txt")
- Shows the file "stuff.txt" as a menu.
Notes
- Use *Format commands in the file to format the menu, create submenus, add separators & conditionally include items.
- The following Properties Keywords may be used within the menu file for formatting:
- back *
- Sets menu background to use desktop wallpaper.
- back "fpath"
- fpath = path (in quotes) to .bmp for menu background
- back r g b
- r g b = red green blue components of menu background colour
- Each value is between 0 & 255.
- fontbold
- Sets menu font to bold.
- fontitalics
- Sets menu font to italics.
- fontname fn
- fn = font name
- Use double quotes if fn contains spaces.
- Must be specified for other font keywords to be actioned.
- fontsize n
- n = pixel size of font
- fontwidth n
- n = boldness of font, as a number
- 0 < n < 255
- iconsize
- Makes icons included & sets icon size.
- Must be specified for icons to be shown.
- maxtext n
- n = maximum length of menu labels
- 0 < n < 255
- text r g b
- r g b = red, green, blue components of text colour
- Each value is between 0 & 255.
- tooltips
- Shows tool tips for menu items.
See Also
- Alternative command:
- PPSR > Built-in Functions > by Category > Files > filemenu()
- More information on formatting file menus:
- PowerPro Help CHM > Built-in Commands > *Menu > File menus
- PowerPro Help CHM > Built-in Commands > *Menu > Properties in file menus
- The {filemenu fpath} argument in Win.Keys():
- PPSR > Plugins > The Plugins > Win > Keys