Next: 9 Utilities
Up: V Reference Manual
Previous: 7 Drawing
This chapter covers standard predefined values.
The classes and objects covered in this chapter include:
- Predefined ItemVals
- A useful collection of predefined values.
Most are useful for defining dialogs, buttons, and menus.
A useful collection of predefined values. Most are useful for defining
dialogs, buttons, and menus.
- Header:
- <v/v_defs.h>
When defining dialogs, menus, and command bars, you are required
to provide an id for each item. There are many common operations
used in GUI designs, and V provides various predefined values
for building your programs. The natural interpretation of most
of these values should be obvious, and the descriptions are kept
to a minimum. Most of the definitions describe the accepted practice
for menu or button items with the given title. While these ItemVals
can be used anywhere, some have ``standard'' usage.
Shows an informative message about current application.
Select all.
Cancel. Usually used with a dialog. V will
automatically reset dialog commands to their original state when
a M_Cancel is selected from a vDialog descended
object.
Used to clear a screen.
Used to close a file. The user is usually
prompted to save or ignore changes if any were made to the file. This
is usually not used to close a menu.
Copy the highlighted text or item, and save into
the clipboard.
Cut the highlighted text or item from the file, and
usually save into the clipboard.
Delete the selected item or text - usually
does not copy into the clipboard.
Done with operation.
Typically a menu bar button to pulldown an edit menu.
Exit from the program - checking to see if files
need to be saved, of course.
Typically a menu bar button to pulldown a file menu.
Find a pattern.
Find pattern again.
Typically a menu bar button to pulldown a font menu.
Select a font. (This is different from the
M_Font value in that M_Font is intended as a main
menu bar item, while this one is for a pulldown menu.
Typically a menu bar button to pulldown a format menu, which
allows the user to select formatting options.
Show help.
Typically a menu bar button to pulldown an insert menu.
M_Line is one of a few of these values
that gets special treatment by the system. It is required for
defining line separators in menus.
Used to create a new file.
Answer No.
Select none.
OK, accept operation or information. Causes return
from dialog.
Used to open an existing file.
Typically a menu bar button to pulldown an options menu.
Paste the contents of the clipboard into the insertion
point of the current file or item.
Set preferences.
Print current file.
On screen preview how the current file would look
if printed.
Replace pattern.
Used to save current file in its current name.
Save current file under new name.
Typically a menu bar button to pulldown a search menu.
Set debug stuff.
Typically a menu bar button to pulldown a test menu.
Typically a menu bar button to pulldown a tools menu.
Undo the last action.
Typically a menu bar button to pulldown a view menu, which
allows the user to select different views of the document.
Typically a menu bar button to pulldown a window menu, which
lets the user select different windows.
Answer Yes.
A useful collection of predefined values to determine the
version of V and the platform.
V defines several values useful for determining the revision of
V, and the platform V is compiled on.
- Header:
- <v/v_defs.h>
The major version of V, such as 1.
The minor release of V, such as 12.
A text string describing the version of
V, such as V 1.12 - 8/4/96.
Defined if the is the standard X version of V.
Defined if the Motif version of V.
Defined if the Windows version of V.
Defined if the Windows 95 version of V.
Defined for the OS2 version of V.
Next: 9 Utilities
Up: V Reference Manual
Previous: 7 Drawing
root
Sun Mar 9 12:27:13 EST 1997