Any games that use MaxGUI for windowed mode?

BlitzMax Forums/BlitzMax Programming/Any games that use MaxGUI for windowed mode?

Just curious. Are there any BMax games that have a windowed mode powered by MaxGUI?

Jason.

yup, and I'm truely happy about it, too!
Some things are next to impossible without MGui!

In the BlitzMax samples, under hi-toro, you'll find a hastily converted "rockout_gui.bmx"...

Some things are next to impossible without MGui!

Such as?

Thanks James, I know about Rock Out, any others? Maybe some games that are for sale?

Jason.

"Su doku Live" uses MaxGUI... Got published it retail (US & Canada) Win/Mac

PLS

I`ll check it out, thanks. Can GUI windows be resized and moved in code? For example, is there a simple ResizeWindow like command? I couldn`t see one listed in the docs but I may have missed it.

Jason.

Yah you change the gadget width/height.

You can set the size and position, or even maximize, minimize the window. Put it on top of others, force the focus to it, give it an alpha value to look through or check for dropped files.
Set a maximum or minimum size between it could be resized. Switch on or off titlebar, toolbar, menu, statusbar. Give it background color and a lot more...

A few commands:
SetGadgetShape( gadget:TGadget,x,y,w,h )
SetMinWindowSize( window:TGadget,w,h )
MaximizeWindow( window:TGadget )

How is this done? I can see a way to retrieve a gadgets width\height but how do I set it?

Also is there a way to set the Windows icon in the top left when using MaxGUI? I know that this is not possible normally (just using BMax) but does MaxGUI rectify this problem?

Jason.

(Edit: Sorry, jsp posted just before I could send this so a lot of my questions have already been answered.)

See the code below. The icon can be set via a resource file which need to be setup first and can then be imported during compile.

SuperStrict

Import MaxGui.Drivers

Global	Window1:TGadget

Local Logic_Gui:TGadget = CreateWindow:TGadget("Logic_Gui",235,115,611,497,Null,WINDOW_TITLEBAR|WINDOW_RESIZABLE |WINDOW_MENU |WINDOW_STATUS |WINDOW_CLIENTCOORDS )
		Window1:TGadget = CreateWindow:TGadget("Window1",13,102,303,147,Logic_Gui:TGadget,WINDOW_TITLEBAR|WINDOW_RESIZABLE |WINDOW_STATUS |WINDOW_CLIENTCOORDS |WINDOW_ACCEPTFILES )
			SetGadgetAlpha( Window1:TGadget, 0.740000010 )
			SetGadgetColor( Window1:TGadget,181,210,240, True )
			Local Ok1:TGadget = CreateButton:TGadget("Move Window to 100,100 and set size to 400,300",20,71,272,23,Window1:TGadget,BUTTON_OK)

Repeat
	WaitEvent()
	Select EventID()
		Case EVENT_WINDOWCLOSE
			Select EventSource()
				Case Logic_Gui	Logic_Gui_WC( Logic_Gui:TGadget )
				Case Window1	Window1_WC( Window1:TGadget )
			End Select

		Case EVENT_GADGETACTION
			Select EventSource()
				Case Ok1	Ok1_GA( Ok1:TGadget )
			End Select

	End Select
Forever

Function Logic_Gui_WC( Window:TGadget )
	DebugLog "Window Logic_Gui wants to be closed"
	End
End Function

Function Window1_WC( Window:TGadget )
	DebugLog "Window Window1 wants to be closed"
	End
End Function

Function Ok1_GA( Button:TGadget )
	DebugLog "Button Ok1 was pressed"
	SetGadgetShape(Window1,100,100,400,300)
End Function


Best Icon setting solution in Yan's last post of this thread!

BLIde Plus is easier. Select the ico file and click a button from the IDE :D

I see jsp was here, already, but I just wanted to say that if you're planning to do anything with MaxGUI, you should purchase LogicGUI. It's amazing how robust and useful LogicGUI has become since jsp first started working on it; it's definitely on my "must have" list for BlitzMax programming.

SpaceAce

Actually Ziggy on the subject of BLide, I tried to use the icon feature and although the desktop icon was change correctly the window icon stayed the same as when you use BMax normally, i.e. a blank white square. Does it only work on MaxGUI windows?

I am only using the free edition at the moment so maybe this is why?

Jason.