Hi all!

I need some help regarding the custom draw routines for tables.

I started with the address book app, all is fine with the edit view when I
compile the program (but of coz, it's the example!). I commented out the
load and save procedures:

// TblSetLoadDataProcedure (table, editDataColumn, EditViewGetRecordField);
// TblSetSaveDataProcedure (table, editDataColumn, EditViewSaveRecordField);

The Edit view still displays fine, without the data, of coz. Now I added
some custom table items to it, but changing the following code:

 for (row = 0; row < rowsInTable; row++)
 {
   // This sets the data column
   TblSetItemStyle (table, row, editDataColumn, textTableItem);
   TblSetRowUsable (table, row, false);
 }

to the following:

 for (row = 0; row < rowsInTable; row++)
 {
   // This sets the data column
   if isDateField(row)
     TblSetItemStyle (table, row, editDataColumn, customTableItem);
   else
     TblSetItemStyle (table, row, editDataColumn, textTableItem);
   TblSetRowUsable (table, row, false);
 }

(isDateField is just a simple macro to check the range of the row)

All the problem started with drawing of the table. All the text fields are
now drawn with a "reverse video" problem where text are writtne against a
"black" background.

What's the problem here? FWIK, text fields does not need the
TblSetCustomDrawProcedure to work. What am I missing out??

Regards,
Gee.





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

Reply via email to