[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Tabbed dialogs (was Re: [XaraXtreme-commits] Commit Complete)

Alex Bligh wrote:

You must have an object with the name in question in use. grep in
strings.lst and I bet you see an entry with a "-". I think it's
probably a biproduct of how the strings are created. Perhaps you
need to do something like:

    wxString name = CamResource::GetObjectName(pDlg->DlgResID);
    ResourceID res=CamResource::GetResourceID((const TCHAR *)name);

i.e. look up the dialog name with "_NAME" on the end.

It seems that strings and dialogs share a name-space (or at least a name to id mapping), if you define a dialog you also get a string with the value '-' for "free". I'll move to appending _NAME to the end of dialog name string and use the id that that gives me.