> well a mere mortal might prefer something like this:
> 
> void SetMaxScrollBar(short setMaxVal){
>      Short val, minVal, maxVal, pageSize;
>      ScrollBarPtr sclPtr =
> (ScrollBarPtr)GetObjectPtr(Resource2SkillScrollBar);
> 
>      SclGetScrollBar(sclPtr, &val, &minVal, &maxVal, &pageSize);
>      SclSetScrollBar(sclPtr, val, minVal, setMaxVal, pageSize);
> }
> 
> less artistic than your code, admittedly.

  when will you people upgrade and use the 3.5 SDK?

  the use of "int", "short", etc etc.. may produce strange results,
  and the 3.5 SDK made it much more clearer.. by introducing typedef's
  for UInt32, UInt16 etc etc.

  upgrade your SDK, and stay away from primitive data types
  (and use the typedef's that Palm provides)!!

  or even better still, try compiling with -Wall (if you use gcc)

  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/

Reply via email to