Bradly, sorry I could not read your email, but I was just sending this email
to you to tell you that I am also having a problem with tables, and perhaps
you can help me. I am a newbie, so if I did not help you was because I did
not know how to... To problem that I am having is when, for example I
'pen-click' over any row of a table I have that displays data from a
database, the row that I highlighted displays automatically the next record
from the database, even though I did not tell it to do it, do you know
what's wrong over here? Do u understand my prob?
Thanks,
Nicolas
-----Mensaje original-----
De: Bradly J. Barton <[EMAIL PROTECTED]>
Para: Palm Developer Forum <[EMAIL PROTECTED]>
Fecha: Lunes, 05 de Febrero de 2001 01:30 p.m.
Asunto: Re: Table Highlight Weirdness
>No one responded to my question when posted last week, so I figure it was
>either too simple or was met with an I don't know shrug... regardless, I've
>found the problem and in an effort to help folks who might be searching the
>archive with a similar problem, here's the solution.. but first the
problem:
>
>The column in question was a note icon like the note in the address book
>application in the OS. When clicking the note, it was not removing the
>highlight.. here is the code that was doing that:
>
>> case tblSelectEvent:
>> DoMyModalDlg();
>> TblUnhighlightSelection(event->data.tblSelect.pTable);
>> TblEraseTable (event->data.tblSelect.pTable);
>> TblDrawTable (event->data.tblSelect.pTable);
>> TblReleaseFocus(event->data.tblSelect.pTable);
>> FrmSetFocus(pForm, FrmGetObjectIndex(pForm, MainLookupField));
>> handled = true;
>> break;
>
>This was solved today when I moved the TblUnhighlightSelection command in
>front of the modal dialog.. in other words.. the above does not work, but
>this does:
>
>> case tblSelectEvent:
>> TblUnhighlightSelection(event->data.tblSelect.pTable);
>> DoMyModalDlg();
>> TblEraseTable (event->data.tblSelect.pTable);
>> TblDrawTable (event->data.tblSelect.pTable);
>> TblReleaseFocus(event->data.tblSelect.pTable);
>> FrmSetFocus(pForm, FrmGetObjectIndex(pForm, MainLookupField));
>> handled = true;
>> break;
>
>I hope this helps someone in the future. :)
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/