> 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?
I have tried many different values for scroll settings ,including
default one, but nothing works. Here everybody seems to confused with
GetObjectPtr() function, which is just a function which returns the object
pointer for the given resource id(scroll bar here). I am sure this function
is 100% right. But the problem is still there.
Paul Bohme <[EMAIL PROTECTED]> wrote in message
news:26220@palm-dev-forum...
>
> > 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);
>
>
> -P
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/