> ScrollBarPtr sclPtr=(ScrollBarPtr)GetObjectPtr(Resource2SkillScrollBar);
maybe *this* call is your problem? :)) what is "GetObjectPtr"? thats
not the API call you should be using from memory :P
the following code is taken from the Cube3D sources:
---
{
FormType *frm;
ScrollBarType *sclBar;
UInt16 val, min, max, pge;
frm = FrmGetActiveForm();
sclBar =
(ScrollBarType *)FrmGetObjectPtr(frm,
FrmGetObjectIndex(frm, helpFormScrollBar));
SclGetScrollBar(sclBar, &val, &min, &max, &pge);
val = InitInstructions();
max = (val > pge) ? (val-(pge+16)) : 0;
SclSetScrollBar(sclBar, 0, min, max, pge);
DrawInstructions(0);
}
---
works for me.. complete source code is available here:
http://www.ardiri.com/palm/cube3D/
cheers
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/