Hi, I have problem to pass compiler for the following code:
Sub-function:
void VControl::setRect(const VRect& r) { if(!isCustom()) { ControlType* pC = (ControlType*) getObjectPtr(_ctrl_id); pC->bounds.topLeft.x = r.x; pC->bounds.topLeft.y = r.y; pC->bounds.extent.x = r.cx; pC->bounds.extent.y = r.cy;
redraw(); } }
I receie the following error message: Error: Illegal use of incomplete struct/union/class ��ControlType�� VControl.ccp: line 70 pC->bounds.topLeft.x = r.x;
No. The Palm OS SDK doesn't let you directly access the members of a ControlType structure anymore. You need to use the FrmSetObjectBounds API to change those values.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
