invalid gadget? o.o

Blitz3D Forums/Blitz3D Programming/invalid gadget? o.o

Guy Fawkes(Posted 2009) [#1]
I KNOW I set this up perfectly, but it STILL says invalid gadget handle.. whats goin on?

x = -1
y = -1
w = graphicswidth()/4
h = graphicsheight()

winMain = GUI_CreateWindow(x, y, w, h, Chr$(13)+"Menu"+Chr$(13), "", True, True, True, True)

tabMain = GUI_CreateTab(winMain, 8, 35, w2-w2/GraphicsDepth()-10, h2-71)
tabp1 = GUI_CreateTabPage(tabMain, "Particle menu")

grp2 = GUI_CreateGroupBox(tabp1, 12, 20, 193, GraphicsHeight()/2, "Particle")

combo1 = WB3D_CreateComboBox(10,10,200,90,grp2, WS_CLIPSIBLINGS Or WS_CHILD Or WS_VISIBLE Or CBS_DROPDOWN)
WB3D_SelectGadgetItem combo1,4

~DS~


GIB3D(Posted 2009) [#2]
Wouldn't that be a BlitzMax thing?


Guy Fawkes(Posted 2009) [#3]
No. its winblitz3d.


Kev(Posted 2009) [#4]
what version are you using? the decls defines all wb3d function calls using WB3D_???? though i see your using calls as GUI_????


Guy Fawkes(Posted 2009) [#5]
Ver. 1.1 I think. the newest


Kev(Posted 2009) [#6]
i see the following syntax is incorrect in your GUI_CreateTab() the call is WB3D_CreateTabber() winMain is being passed as the x position hence the remaing systax for the call in incorrect.

download version 1.0 in my sig, it contains the docs with full syntax


Guy Fawkes(Posted 2009) [#7]
Tried that. it didnt like it.

Is there a way to fix it?