Gui Lib Extra Commands ?

BlitzMax Forums/BlitzMax Programming/Gui Lib Extra Commands ?

Hi jb,

I have been studying the html activex control and i will be adding it very soon. You can already read the desktop dimension with GetControlWidth( GetDesktopHandle() ) and GetControlHeight( GetDesktopHandle() ) they will get the width and height of the desktop.

I have added tabbing, you can change a windows or controls title at any time with SetControlText and freeing a window does free all the controls i found this out by using "Winspector Spy" which tells me what gets deleted and created.

In blitzplus the canvas is a opengl contex so by using a blitzmax cavas area is pretty much the same, have a look at this example,

Import pub.puremax

Graphics 800,600,0 '0 is very important

Local window = createWindow( "Button Test", 0, 0, 300, 300 )
CenterWindow( window )

Local hwnd = BMaxWindowParent( window )
SetControlSize( hwnd, 800, 552 )
SetControlPosition( hwnd, 10, 30 )

Repeat
	
	ID = WaitAction()
		
		Select ID
	
			Case UI_CLOSE
				
				End
				
		End Select

Forever

That is how i created the image viewer example.

Thanks,
Sarge