home *** CD-ROM | disk | FTP | other *** search
- Documentation of GVMenus
- ========================
-
- GVMenus is a Turbo Pascal unit and is part of the Graphics Vision
- package.
- GVMenus provides the pulldown menus and the statusline of GV.
-
- Methods that are not mentioned are compatible with TV.
-
- Menus
- -----
-
- dfXXXXX: flags for the field Disabled of a Tmenuitem record.
- The single flags have the following meaning:
-
- dfDisabled: The menu options is inactive if this flag is enabled.
- This is the same as if in TV the field Disabled was true.
-
- dfMenuCheck: Close to the text of a menu option the hook known
- from Windows will be drawn is this flag is enabled.
- The options reacts like an item of a Tcheckboxes
- object.
-
- dfRadio: If this flag is enabled in addition to dfMenuCheck all
- menu options (submenus will not be considered) this flag
- is enabled in react like items of n Tradiobuttons object,
- i.e. the hook mentioned above will only be drawn close to
- one menu option.
-
- dfCheckState: If enabled the hook is visible else not.
-
- dfBitmap: If this flag is enabled the field Name of the menu option
- will be interpreted as a pointer at a bitmap, which was
- created with VGAMem.GetImage (see there) else as a pointer
- on a String as usual.
-
- Because of these functionality enlargements of the menu there are two other
- Tmenuitem routines than the ones known from TV.
-
- function NewBitmap(Bitmap: Pointer; KeyCode: Word; Command: Word;
- AHelpCtx: Word; Next: PMenuItem): PMenuItem;
-
- creates a menuoptions which draws a bitmap instead of a text.
- Bitmap is a pointer on a bitmap created with VGAMem.GetImage.
- Besides this the function is compatible with NewItem.
- Hint: Please note, that NewBitmap makes its own copy of the bitmap
- data in memory. So you have to deallocate the bitmap given in
- the parameter yourself.
-
- function NewBmpSubMenu(Bitmap: Pointer; AHelpCtx: Word; SubMenu: PMenu;
- Next: PMenuItem): PMenuItem;
-
- creates a submenu which draws a bitmap instead of a text.
- Bitmap is a pointer on a bitmap created with VGAMem.GetImage.
- Besides this the function is compatible with NewSubMenu.
- Hint: Please note, that NewBitmap makes its own copy of the bitmap
- data in memory. So you have to deallocate the bitmap given in
- the parameter yourself.
-
- Tmenuitem
- ---------
-
- Name: To use texts and bitmaps in menus Name is an untypified pointer.
-
- Disabled: has beside the duty of declaring a menu option inactive some
- other duties (see dfXXXXX).
-
- Tmenuview
- ---------
-
- procedure drawitem (item: Pmenuitem); virtual;
-
- draws the menuitem item is pointing at on the screen. Drawitem should
- not be called by GV users.
- In Tmenuview drawitem is an abstract method. Only Tmenuviews's
- descendants give any function to drawitem.
-
- Hint: Menu options that do not contain a submenu shouldn't be used
- with Tmenubar objects.
-
- Tstatusline
- -----------
-
- In GV it is possible to give certains chars to control the output font
- of a statusitem or statushint. The first char of the text stands for
- the used font:
-
- #0 - ftSystem is used for the following text
- #1 - ftSansSerif is used for the following text
- #2 - ftMonoSpace is used for the following text
-
- If another char is used GV uses automatically ftSystem.
- (also see ExtGraph - ftXXXXX)