IsValid
TheIsValidmethod returns a Boolean value that indicates whether this menu bar object is equivalent to the base menu bar object from which it was copied.
ODBoolean IsValid ();
- return value
kODTrueif this menu bar object is equivalent to the base menu bar object from which it was copied, otherwisekODFalse.DISCUSSION
Your part calls its cached base menu bar'sIsValidmethod before adding its own menus and displaying the composite menu bar. If this base menu bar is no longer valid, your part recopies the current base menu bar object by calling its window-state'sCopyBaseMenuBarmethod.SEE ALSO
TheODWindowState::CopyBaseMenuBarmethod (page 855).
Listing 2-30 on page 86 in OpenDoc Cookbook.
Listing 2-37 on page 94 in OpenDoc Cookbook.
"Obtaining the Menu Focus" on page 243 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help