Mike Margerum wrote:

You'll need to define
#define ALLOW_ACCESS_TO_INTERNALS_OF_LISTS

Then you can do this

           ListAttrType    listAttr;

           int        attrSize = sizeof(listAttr);
                      err = MemMove (&listAttr, &(listP->attr), attrSize);
           listAttr.hasScrollBar = 1;
           err = MemMove ( &(listP->attr), &listAttr, attrSize);


I doubt this will be portable when writing pure cobalt apps but it does the trick for os 5 and below. It's a lot of work to implement a table when all you want is a listbox with a real scrollbar.



already for many projects. If you do it once, you will always useI snipped a couple of table routines from the memo example and used them tables if you want a static, aka non-dropdown list. I really like the amount of flexibility of a table-made list.


Regards
Henk

--
-------------------------------------------------------------------------
Henk Jonas
Palm OS � certified developer

[EMAIL PROTECTED]                              www.metaviewsoft.de/palmos
-------------------------------------------------------------------------

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

Reply via email to