Remove maximize button and not allow resize window

Archives Forums/Linux Discussion/Remove maximize button and not allow resize window

TMK(Posted 2007) [#1]
Hi,

I'm working on my first BlitzMax game, and I'm trying to fix up the Linux version as good as I can at the moment.

Is there any way to disable the maximize button on the window (when in windowed mode), and not allow the window to be resized? Now one can resize it, and the window will have nothing drawn in the new expanded area.

I suppose I need some C/C++ code perhaps, but it's my first time doing anything linux related as well, so no idea what API's to use for this :)

Thanks people!


ford escort(Posted 2007) [#2]
there's a flag at the end of the createwindow command

try 1

createwindow("name",x,y,w,h,group,1) for exemple


TMK(Posted 2007) [#3]
Thanks for the reply.

Although, from what I can see, CreateWindow etc. only works with MaxGUI, and I'm trying to do this in graphics mode.

E.g. with the "spintext.bmx" example that's included with BlitzMax. This example created a window that just spins some text, in Windows and Mac (if I remember correctly) the window created can't be resized or maximized, while the Linux version can. This is atleast what happens on my laptop with Ubuntu v7.04.