Apologies for reposting this, but it's really killing me. Can anyone help....
I've got a strange problem with scrolling a table that I wondered if anyone could help
shed some light on.
I've got a table showing data and 2 repeating buttons to scroll up and down the table.
The problem arises when one of the table rows has enough text that when you click on
it, it expands to fill 2 rows. When I then try to scroll up or down nothing happens.
The event handling code is:
if (event->data.ctlRepeat.controlID == Repeat1476)
{
//Up
tbl = GetObjectPtr(ViewTable);
TblMarkTableInvalid (tbl);
form = FrmGetActiveForm();
if (viewissuerecord > 0)
{
viewrecord--;
InitialiseTable();
TblRedrawTable(tbl);
}
handled = 0;
}
else if (event->data.ctlRepeat.controlID == Repeat1477)
{
//Down
tbl = GetObjectPtr(Table);
TblMarkTableInvalid (tbl);
form = FrmGetActiveForm();
if (TblRowUsable(tbl, 8))
{
viewrecord++;
InitialiseTable();
TblRedrawTable(tbl);
}
handled = 0;
}
else if (event->eType == tblSelectEvent)
{
rowselected = true;
currentrecord = event->data.tblSelect.row;
handled = true;
}
else if (event->eType == tblEnterEvent)
{
tbl = GetObjectPtr(Table);
handled = TblHandleEvent(tbl, event);
}
else if (event->eType == tblExitEvent)
{
currentrecord = NoRecordSelected;
tbl = GetObjectPtr(Table);
handled = TblHandleEvent(tbl, event);
}
Any suggestions?
TIA,
John.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html