At 04:53 PM 6/18/2003, Danny Wong wrote:
I'm in the middle of converting a OS3.5 app to OS5.0 and
have the following to set the scrollbar.

attr->hasScrollbar = true;

I remembered before there is an api in OS5.0 SKD to
set/get control attributes. Is there such function.
What is the correct method to do this using
OS5.0 SDK?

List or Field?


For setting this in a fields, you use FldGetAttributes/FldSetAttributes. The FieldAttrType structure can be modified without needing to turn on ALLOW_ACCESS_TO_INTERNALS.

There's no glue function for setting this for a List. When this attribute is set for a list, it turns off the up/down indicators, but it's never been an exposed attribute in the resource files, and there are no accessor functions. I would guess that this use is unsupported due to the lack of documentation and APIs to enable it.
--


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/

Reply via email to