starseed <[EMAIL PROTECTED]> wrote:

> does someone know how I can display UI resources from a hack?

Here's a snippet of code from one of my hacks. Once the resource 
database is open, you can use any of the resource API routines on it.

Word
DoAlert(CharPtr timestr, CharPtr unitsstr)
{
    DmOpenRef           dbP;
    Word                button = 0;

    if (dbP = DmOpenDatabaseByTypeCreator('HACK', MYHACKCRID,
                                                      dmModeReadOnly))
    {
        button = FrmCustomAlert(ALIDtoolong, timestr, unitsstr, NULL);
        DmCloseDatabase(dbP);
    }

    return button;
}

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to