|
|
> On 29 Apr 2006, at 8:32, Anonymous wrote:
>
> > Hi all,
> >
> > Is someone can show me how to scroll some text lines
> > whith a Fl_Scrollbar widget ?
>
> If you specifically want to manipulate text, it would be much simpler
> to use a Fl_Browser or Fl_Text_Editor widget, which takes care of
> handling the scroll bars, etc., for you automatically.
>
> There are examples of both in the test directory, try copying one of
> those examples and extending it to match your needs... see the files
> test/browser.cxx or test/editor.cxx
Thanks for your advices but the thing is I derived my own class from Fl_box in order to display text lines (with the drawing functions) the way I want to .
So I need to know how can I make the scrollbar interact with my own class and the other way around.
Can you help me ?
[ Direct Link to Message ] | |
|
| |