I just started messing around with OnBoardC (converting an app I wrote with
PocketC) and am having a problem with a pretty simple task. I have a button
that when tapped will toggle the state of a checkbox. I've created the
resource file and included the proper #defines for the objects.
Here is the event code for the button (excerpt):
    case ctlSelectEvent :
        switch (eventP->data.ctlSelect.controlID) {
            case btnU :
                on_btnU();
                handled = true;
                break;

In the function (on_btnU), I try to toggle the checkbox (cbUr) as such:
static void on_btnU()
{
ControlPtr ctl;
ctl = GetObjectPtr (cbUr);
if (CtlGetValue (ctl))
    CtlSetValue (ctl, false)
else
    CtlSetValue (ctl, true);
}

When I try to compile I get "unknown identifier 'GetObjectPtr'"
I've tried to look through the SDK source code, and this looks OK to me.
Does anyone have any clues for the clueless?  ;)

________________________
~Michael Kizer
Sr Member Technical Staff
CSC / The Pennant Alliance
[EMAIL PROTECTED]
858.784.5467


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to