Since you use a custom draw callback function to draw table items, the TableItemStyleType should be customTableItem instead of labelTableItem (TblSetItemStyle in your InitTable routine).
Claudio > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, September 12, 2002 11:28 AM > To: Palm Developer Forum > 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/
