Contents Up Previous Next

Working with identifiers

Dialog Editor keeps track of identifiers in your resources, and reads and writes an include file of the form name.h where 'name' is the root name of your .wxr file. Dialog Editor knows about the predefined identifiers such as wxID_OK.

When you create a dialog or control, the identifier is initially generated. When you edit the identifier via a property editor, you can choose a new name, such as a predefined symbol and optionally change the integer assigned to the name (assuming it's not a predefined symbol).

When you save the project, the identifier include file is saved as well. Include this file in your project so that you can refer to controls and dialogs by identifier rather than obscure integers. Note that the .wxr file itself can only contain integer ids and not the symbols, due to way in which the resource file is loaded.