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/

Reply via email to