On 26.07.2012 10:16, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>> What I want is, when i click the full-screen button of the main window, it >> calls my own written callback. Is it possible ? >> I want to resize the main window as I want. So, I have to give one >> callback to resize it. >> Currently, what I am doing is, I create a button below the fullscreen >> button to resize it. It looks odd, so can I make a callback for fullscreen >> button of the main window? > > I don't think there's a way (in fltk) to hook the buttons that are in the > window decorations (other then the window close event) as they are provided > by the platform and the WM rather than by fltk itself. Well, there's no direct way to do it with a button callback, but as usual there's something the OP can do: derive one's own window class and overwrite the resize() method. With a little educated guessing (comparing the requested window size with the screen dimensions), one could find out if the user requested the full screen size. OTOH, I didn't really understand what the OP wanted to achieve... -- Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

