Hello,
I have been reading "Advanced Palm Programmimg" by Steve Mann, page 79.
where it states the Popup Handling,,Im kind of confused, and when I tried
running the code I get several error from this case statement;
// Popup triggers
case ctlEnterEvent:
ctlP = GetObjectPtr ( eventP->data.ctlSelect.controlID
);
if ( ctlP->style == popupTriggerCtl )
{
HandlePopup ( eventP->data.ctlSelect.controlID
);
handled = true;
DisplayNumber ();
}
break;
the errors being;
Error : illegal use of incomplete struct/union/class 'struct ControlType'
FloatFld.c line 718 if ( ctlP->style == popupTriggerCtl )
Error : ';' expected
FloatFld.c line 720 HandlePopup ( eventP->data.ctlSelect.controlID );
Error : illegal use of keyword
FloatFld.c line 724 break;
Error : illegal use of keyword
FloatFld.c line 728 case keyDownEvent:
Error : illegal use of keyword
FloatFld.c line 730 break;
Error : declaration syntax error
FloatFld.c line 733 return handled;
Error : declaration syntax error
FloatFld.c line 734 }
my question is where is it that popupTriggerCtl is /should be defined..
thanks
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/