Dear friend, After some experiments with Shaped_Window classes (FLTK 2.x), I have found more or less working solution for resizable non-rectangular windows. It uses an std::vector of CPoint objects to define a polynomial region that shapes the window. During the window resize, a virtual method CWindow::resizeShape(int x,int y) is called. If you change the CWindow::m_shapePoints vector inside this method to have some points, then these points make the shape of the window. If m_shapePoints vector is empty, then the shape support is not used. The example program examples/shaped_window demonstrates how the shaped window can be used. It also contains a preliminary code to resize the border less shaped window. Most likely, that code would eventually make CShapedWindow class. The described features are only available in SVN version. Alexey Parshin, SPTK development team
List hosted by Total Knowledge