You need to also set your rows usable.  TblSetRowUsable  Search for some
table references and/or examples.  (google, Palm Knowledgebase, built-in app
sources, etc.)

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:27 AM
Subject: Table Problem


Hello, it's me again, after List problem, now it's Table Problem,
I have looked on the memoList but when I made the code for the Table, it
doesn't work, nothing appears in the Table.

here is my code:

static void DrawEntreprise (void * table, Int16 row, Int16
UNUSED_PARAM(column), RectanglePtr bounds)
{
Char * sHeure = "test";
TablePtr TableP;
FormPtr Frm;

Frm = FrmGetActiveForm();
TableP = FrmGetObjectPtr(Frm,FrmGetObjectIndex(Frm,ProspectsTableTable));

WinDrawChars (sHeure, StrLen(sHeure), bounds->topLeft.x, bounds->topLeft.y);

}



static Boolean InitTable()
{
FormPtr Frm;
Int16 rows;
Int8 i;
TablePtr TableP;


Frm = FrmGetActiveForm();
TableP = FrmGetObjectPtr(Frm,FrmGetObjectIndex(Frm,ProspectsTableTable));



rows = TblGetNumberOfRows(TableP);

for (i=0;i<rows;i++)
{
TblSetItemStyle(TableP,i,kEntreprise,labelTableItem);
}
TblSetColumnUsable(TableP,kEntreprise,true);

TblSetCustomDrawProcedure(TableP,kNom,(TableDrawItemFuncPtr) DrawNom);

return true;

}

If someone have an idea,

Thanks in advance,

Regards,

Helene
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr


--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/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