Hi :-)
I've got a small question regarding the LstPopupList function. Currently
I'am using
a couple of dynamically filled lists on my Forms, which are initalised
during a Form_Init
function:
...
LstSetDrawFunction( listP, ListIDNrDraw );
LstSetListChoices(listP, NULL, num);
LstDrawList(listP);
...
As you see, the list is filled by using a ListDrawDataFunction
'ListIDNrDraw'.
The list should only appear on the screen after a button is pressed, so I
cleared the
'Usable'-Checkbox in the constructor for the list.
I am using the following code in my event handler to show the list
...
case XYZGraphicButton:
listP = GetObjectPtr( ID_List );
selected = LstPopupList(listP);
if(selected!=noListSelection)
{
....process the selected list entry...
}
.....
During the call of 'LstPopupList' the list is filled dynamically by calling
the
ListDrawDataFunction 'ListIDNrDraw' for each list entry.
So far everything is fine and working stable....
...but,
is there a way to handle events whilst the list is shown on the screen ?
The reason, I am asking is that by pressing the 'Page-Up' and 'Page-Down'
keys when the list is open, it scrolls always a full page and the
highlighted selection does not change.
I would like to handle/modify the button event, that the list scrolls only
one line at a time and highlights the next
entry. Finally by pressing one of the hardware buttons should select the
current highlighted list entry for
further processing.
On the Tungsten (PalmOS 5.0) the behaviour of the 'LstPopupList' function is
fine. By pressing
the List-Button the list pops-up with a current selection. By pressing the
'Page-Up' and 'Page-Down'
keys the list is scrolled one line at a time and the highlighted selection
moves to the next entry. By pressing the
hardware button in the middle of the 'Page-Up' and 'Page-Down' keys selects
the highlighted list entry.
I'd like to have the same sort of functionality on PalmOS 3.5/4.x....
Any ideas ?
Thanks in advance.
Jochen
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/