> void SetMaxScrollBar(short setVal)
> {
>  short val=0,minVal=0,maxVal=0,pageSize=0;
>  ScrollBarPtr 
> sclPtr=(ScrollBarPtr)GetObjectPtr(Resource2SkillScrollBar);
>  SclGetScrollBar(sclPtr,&val,&minVal,&maxVal,&pageSize);
>  SclSetScrollBar(sclPtr,val,minVal,setVal,pageSize);
>  return;
> }

Looks reasonable so far..

> I am calling this function like this-->
> SetMaxScrollBar(20);

Ah!  Now my question: What are your initial scroll bar settings?  Did you
leave them defaults, and now you're trying to set a combination of
valid/invalid data?  What happens when you set a scrollbar to a page size of
0?

  -P

-- 
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