FLTK logo

Re: [fltk.general] 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 ? imm Apr 29, 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

--
Ian






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'.