Re: [fltk.general] Transparency on edge of Window with FL_ROUND_BOX

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: Transparency on edge of Window with FL_ROUND_BOX Manolo Apr 30, 2021 top right image
As already mentionned, the solution for this problem is to use the
Fl_Window::shape() member function. See :
This feature is available in FLTK 1.4 and also starting from FLTK 1.3.3 provided the library is built with
    FL_ABI_VERSION = 10303  (or more)

Giving a window the shape of an Fl_ROUND_BOX is done in FLTK 1.4 to transiently
display the new value of the scale factor (type ctrl-+ (or cmd-+ on macOS)).

The code is found in function Fl_Screen_Driver::transient_scale_display() of
file Fl_Screen_Driver.cxx :
- lines 363-373 create an Fl_RGB_Image object containing the adequate shape information
- line 388 applies this shape to the window (and also set it without titlebar)
That should be enough.

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
To view this discussion on the web visit
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-2023 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.