On Tue, 2003-08-19 at 18:55, Kerry Twibell wrote:
> I have created a gadget that displays text in
> browser-like fashion.
> Would someone direct me to some documentation/code to
> attach a scroll
> bar to a gadget? I have too much text to fit in the
> window at once.

Hi Kerry,

You don't 'attach' a scrollbar, you have a scrollbar on the screen in
addition to your gadget.

When the form starts up, you need to set the initial scrollbar
position.  When you get sclRepeatEvents, you need to redraw your gadget
appropriately, and update the scrollbar again.

Look at Chapter 18 in the Palm OS Programmer's Reference, and chapter 4
in the PalmOS Programmer's Companion.

Of course, for example usage, take a look at the source code for the
built-in applications like memopad.

-Ken



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

Reply via email to