I use this to adjust the attributes of controls
However the ListAttrType, and ListType structs are there but
not the set and get functions as in the controls
IE this......
FieldType *field;
FieldAttrType attr;
field = FrmGetObjectPtr (form, FrmGetObjectIndex (form, levelFLD));
FldGetAttributes(field, &attr);
attr.editable = false;
FldSetAttributes (field, &attr);
FldDrawField(field);
I can not locate a LstSetAttributes or a LstGetAttributes
So how do you access the attr structure
typedef struct {
UInt16 usable :1;
UInt16 enabled :1;
UInt16 visible :1;
UInt16 poppedUp :1;
UInt16 hasScrollBar :1.
UInt16 search :1;
UInt16 reserved :2;
} ListAttrType;
and
typedef struct {
UInt16 id;
RectangleType bounds;
ListAttrType attr;
Char ** itemsText;
Int16 numItems;
Int16 currentItem;
Int16 topItem;
FontID font;
UInt8 reserved;
WinHandle popupWin;
ListDrawDataFuncPtr drawItemCallback;
} ListType;
thanks
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/