[fltk.general] Re: Custom background for fltk widget

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: Custom background for fltk widget "anmol.... 08:16 Oct 03 top right image
  A second reference is from Matthias' article - https://www.fltk.org/articles.php?L466+I0+T+P1+Q 

This article uses the data()[0] pointer from Fl_Image class and accesses the pipe buffer directly. This can be used to provide a background for Fl_Image derived classes.

However, for other classes - like Fl_Text_Editor and Fl_help_View this method is not useful as these are not derived from Fl_Image

On Sunday, October 3, 2021 at 8:29:34 PM UTC+5:30 anmol....@gmail.com wrote:
I've seen the example described by Ian - https://www.fltk.org/articles.php?L468 

However, both the methods described here replace the widget with a background image. For instance, using Fl_Text_Editor or Fl_Help_View and setting text->image() or view->image() will only render the background.

The behavior I want, is for a background image to be set for say, Fl_Help_View and then the contents of the buffer() to be rendered **on top** of the background image.

So, for instance you will have a text editor window with a custom background, and you can style type in the letters.

You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/376ccba0-d492-43d5-ba53-492854e29803n%40googlegroups.com.
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

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