you need to also set the columns usable
TblSetColumnUsable
----- Original Message -----
From: "jimmi" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, June 26, 2000 11:24 AM
Subject: Can't get a Table UI to show anything!


> Hi,
>
> I'm having I lot at problem getting a Table UI control to show its data. I
> have created the table with constructor, and the code is as follows:
>
> TablePtr pTable;
> FormPtr frmP;
> char *text = new(char[10]);
> StrCopy(text,"Hello");
>
> frmP = FrmGetActiveForm();
> pTable = (TablePtr)FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
> ViewDataSourcesTable));
> TblSetItemStyle(pTable, 0, 0, numericTableItem);
> TblSetItemStyle(pTable, 1, 0, labelTableItem);
> TblSetItemInt(pTable, 0, 0, 5);
> TblSetItemPtr(pTable, 1, 0, text);
> TblSetRowUsable(pTable, 0, true);
> TblSetRowUsable(pTable, 1, true);
> TblRedrawTable(pTable);
>
> Nothing at all gets drawn in the table. What am I doing wrong?
>
> Regards Jimmi
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
>




-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to