Sorry, but it's not that easy :-)

You need to add a Scrollbar resource to your form.

You need to determine when the scroll bar needs to be updated, and call
SclSetScrollbar() with appropriate parameters. SclSetScrollbar() will
display or hide the scroll bar for you as needed.

In your form's event handler, you need to catch fldChangedEvent (to
determine if scrollbar needs updating), sclRepeatEvent (for when user puts
the pen down in the scrollbar), keyDownEvent for vchrPageUp and vchrPageDown
(to scroll the table via the hard keys).

For a good relativly simple example of how to do all this, see the source
code for the built-in Address application's Note form, included in the SDK,
file AddrNote.c.

Hope that helps...

Dave

"Christian Lindemeier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>   Hello
>
> I want to scroll a table vertical. I already set the tblHasScrollbar.
> But I have no idea what I have to do to make the application
> listen for any actions the user does with the scrollbar and how I can
> calculate the lines the table has to be scrolled.
> I hope somebody can help me.
>
> thx Christian Lindemeier
>
____________________________________________________________________________
__
> 38xTestsieger - WEB.DE FreeMail - Deutschlands beste E-Mail
> mehr Spass durch Smileys, Bilder, Musik,... http://f.web.de/?mc=021128
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to