At 02:14 PM 9/23/2004, you 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.

I just double-checked, and it does look like that attribute is handled correctly, at least in Palm OS 3.0 and 4.0. However, this method of directly turning on the attribute isn't supported; if you want to do it, you might just want to define your own accessor function, providing local definitions of the List data types, rather than using the ones from the Palm OS headers.


I'll look and see if there's a way to add a glue function for this. I know it's possible for OS 4.x and 5.x, but I'm not sure if our Cobalt glue mechanism would work for it.

-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Fourm Archives:   http://news.palmos.com/read/all_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