Help IDs in OpenOffice.orgIn OpenOffice.org, ever user interface element (a dialog control, a menu item, whatever), needs to have a unique help id. To some extent, you as the developer are responsible for ensuring this ... Content
Why your controls need help ids
Dialogs, Tab pages, and the likeResourcesIf you declare your dialogs (which from now on will be a placeholder for Dialog, ModalDialog, TabPage, and other such "control containers") using resources, some things are done automatically. For instance, let's consider the following resource: ModalDialog RID_DLG_IDENTIFIER Here, you don't have to care about the fixed text, and the buttons (and even the dialog itself). Simply forget about them: HelpIDs will be generated automatically for them, both for usage with the help system, and for usage with the QA test tool. However, you need to care for the Control. For this "generic" type (as opposed to the concrete types you usually encounter), you need to manually ensure that it gets a help id, and that this help id is usable for others. See " Manually declaring help ids" below for how you do this. Programmatic element creationIf you create your UI elements programmatically (e.g. within the C++ source code at runtime), then you also need to declare help ids manually. Menus and toolbars(Yet to come) Manually declaring help idsIf you have an UI element which needs a manually declared help id, the following is necessary:
Last modified: $Date: 2004/09/01 12:14:46 $ |
|||||||||||||


