Daniel McCarty wrote:
>
> Ariel Barreiro wrote:
> >
> > Your code is pretty useful. By the way, I do have a question about this
> > custom draw function. When do you set it? I men where do use the
> > LstSetDrawFunction(...). I am using this code to init the list:
> >
> > static void InitForm(void)
> > {
> > frm = FrmGetActiveForm();
> > numRecords = DmNumRecords(DB);
> > if (numRecords) {
> > itemIndex = FrmGetObjectIndex(frm, List);
> > lst = (ListPtr) FrmGetObjectPtr(frm, itemIndex);
> // set custom draw func here
> LstSetDrawFunction(lst, List);
Oops, that should be LstSetDrawFunction(lst, ListFuncName)
(not your define'd "List")
-Daniel.