Hi guys,

        The following sample helps you to hide the scrollbar arrows in a
list.

        ListType* pList = (ListType*)GetObjectPtr(NameList);
        int  attrSize = sizeof(listAttr);
        MemMove (&listAttr, &(pList->attr), attrSize);
        listAttr.hasScrollBar = 1;
        MemMove(&(pList->attr), &listAttr, attrSize);   

with regards,
Rangababu TNV.


-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 9:52 AM
To: Palm Developer Forum
Subject: Re: Lists and Scrollbars


At 11:16 PM 9/4/2003, Jefferson wrote:
>Hi,
>
>I have a list with more items than the number of visible items, the object
>creates a couple of arrows(like a scrollbar); But I have bound a ScrollBar
>control to the list object. How to disable the built-in scroll in the list
>using LstSetListChoices?

There is no mechanism in Palm OS to do this.  The only way you can is to 
limit the actual number of items in the list to what's visible.  It's 
probably easier to bind a table to a scroll bar.  This is pretty easy to do 
using Object Library for Palm OS, since it has code already to bind tables 
to scrollbars.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to