On 10/12/10 12:19, Paul R wrote: > How can i get a window with border, but without the > maximize/minimize icons?
Window decorations are the responsibility of the window manager (WM), not of fltk, so there's no direct way in fltk to select which (if any) of the window controls are shown (though you can do that with platform specific code for WIN32, X11, etc.) You can remove the window border entirely, but that (on most platforms) makes the window "un-dragable" as you noted below. However, it is pretty easy to add your own handle() method to a borderless window subclass to make it dragable again - I suspect there's a demo of this on Greg's cheat-sheet, actually > I tried removing the border but thats not really any good as i still > need to be able to move my window around, it's just a popup window > for errors or warnings What does setting the window type to "non-modal" do? That varies from WM to WM, but may give the desired window characteristics in your use-case. > Presently it is set to non-resizable, if i click the maximize button > it shoots up to top left corner of display, which i can understand. What host OS and WM are you using by the way? > it also shrinks as below.. If i manually drag the window however it > 'shrinks' and as it is not resizeable i have to x it out as i can't > get to the ok button any longer haha. Hmm, I'm not sure what you are describing here. If the window is not resizable, then it should not shrink. Can you elucidate? > If i set minimum and maximum size of window would this solve the > 'shrinking' issue at least? It should - though a window that is not resizable should not shrink anyway, so I'm a bit confused about what you are describing. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

