ClientWidth help from other OS's

BlitzMax Forums/BlitzMax GUI Programming/ClientWidth help from other OS's

I get 146 too on Windows Vista with Aero enabled.

Just looking at your code, I thought that I best mention that you should use the bitwise OR '|' operator instead of '+' to combine flags. Using '+' can sometimes give undesirable results.

Strict

Import MaxGUI.Drivers

Global window:TGadget=CreateWindow(AppTitle,0,0,640,480,Desktop(),WINDOW_TITLEBAR|WINDOW_RESIZABLE|WINDOW_CLIENTCOORDS|WINDOW_CENTER)
Global panel:TGadget=CreatePanel(5,5,150,ClientHeight(window)-10,window,PANEL_BORDER)

SetGadgetColor panel,128,128,128
Notify ClientWidth(panel)

Repeat
	WaitEvent()
	Select EventID()
		Case event_windowclose
			Select EventSource()
				Case window
					End
			EndSelect
	EndSelect
	Delay 5
Forever