Christy,

This is because you've declared DrawColumn2 to be "static" which means that
it is invisible outside of the source file that its in.  Its the equivalent
of a "private" function in an object oriented language.  So the compiler
thinks "DrawColumn2" is undefined.

One other thing, I'm pretty sure you want

TblSetRowUsable (table, i, false);

and not

TblMarkRowInvalid(table, i);

The former makes the row invisible, the latter is used to indicate the the
table's data is changed and its needs to be redrawn.  See the API to see
what I'm talking about.

regards,
Dave Eyler

"christy" <[EMAIL PROTECTED]> wrote in message
news:105791@palm-dev-forum...
>
> It got to be something easy but I couldn't see it:
> I am drawing a table. I couldn't compile because of
> the "undefined identifier 'DrawColmn2'" (DrawColmn3,
> etc) error... but they are there.
>
> In the FormInit:
> ...
> // only draw the 1st 4 rows
> for (i = 0; i < numRows; i++) {
>   if (i < 4) {
>     TblSetItemStyle(table, i, 0, numericTableItem);
>     TblSetItemInt(table, i, 0, i + 1);
>
>     TblSetItemStyle(table, i, 1, customTableItem);
>     TblSetItemStyle(table, i, 2, customTableItem);
>   } else {
>     TblMarkRowInvalid(table, i);
>   }
> }
>
> // set up call back
> TblSetCustomDrawProcedure(table, 1, DrawColmn2);
> TblSetCustomDrawProcedure(table, 2, DrawColmn3);
> ...
> ...
> static void DrawColmn2(void *table, Int16 row, Int16
> column, RectangleType *bounds) {
>   FontID curFont;
>   Char symbol[2];
>   symbol[0] = symbolAlarm;
>   symbol[1] = '\0';
>
>   curFont = FntSetFont(symbolFont);
>   WinDrawChars(&symbol[0], 1, bounds->topLeft.x,
> bounds->topLeft.y);
>   FntSetFont(curFont);
> }
> ...
> ...
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to