FLTK logo

Re: Scroll text lines ?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Scroll text lines ? Anonymous Apr 30, 2006  
 
> 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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.