IGlass GUI for blitzmax - III

BlitzMax Forums/BlitzMax Programming/IGlass GUI for blitzmax - III

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Filax,

the code below works on the Mac but not on windows, what am I doing wrong? The frame should be displayed on the tab.

EDIT:

I guess I'm not doing anything wrong I just tried another test and frames don't work in tabs in the Windows version, only when they are put directly in a window. Please give me a fix for this, I'm stuck until it works.


Strict 

Framework BRL.GlMax2D

Import BRL.freetypefont
Import BRL.System
Import BRL.Basic
Import BRL.pngloader
Import BRL.Retro
Import pub.igl
?Win32
	SetGraphicsDriver(GLMax2DDriver())
?MacOS			
	Import "BMaxMacWindows.m"
?

' --------------------------
' Load IGL gui ! important !
' --------------------------
Include "./IGlass1.5.1/IGL_Classe/Inc_IGlass.bmx"
Global exitProgram:Int = 0 							' should we exit the program

Graphics 800,600,32,60
IGL_InitGUI(1)

Local VCTab:IGL_Tab = IGL_Tab.Create(IGL_MasterWindow,"tab",100,0,350,440)

Local DemoFrame:IGL_Frame=IGL_Frame.Create(False,"Demographics",10,10,160,180)
IGL_AssignToTab(DemoFrame,VCTab,"tab")

Global mainMenuBG:TImage = LoadImage("interface/QMMainMenuBG.png",FILTEREDIMAGE|MASKEDIMAGE)
IGL_BackgroundImage=mainMenuBG


While exitProgram=0
	Cls
	If KeyDown(KEY_ESCAPE) Then exitProgram=1
	IGL_RefreshGui()
	Flip
	FlushMem()
Wend 
IGL_ClearGui()
End