hmg.4 bug ButtonBox.prg ?
Posted: Tue Jan 17, 2012 11:24 pm
Error Base/9999 Argument erro: _HBQT_ERROR
Called from ButtonBox:addbutton(99)
Line 99 in buttonbox.prg
myProg.ppo:
:addButton("B1",0x00000400,{||MsgInfo("b1")})
This gives the error
if you look at hmg.4\svn\samples\buttonbox\demo_2.ppo
:addButton( 0x00000400,,{||MsgInfo("ok")})
And this is good.
So first parameter must be Role, then button and the block!?
Line 91 and 95 in buttonbox.prg must be
not ::oQTObject:addButton( xButton:QtObject , nRole )
but ::oQTObject:addButton( nRole, xButton:QtObject )
????
Nope .. i have rebuild libhmg.a and now i get an error on
::oQTObject:addButton( nRole, xButton:QtObject ) in buttonbox.prg.
I have also tryed line 99:
oButton:QTObject:connect( "clicked()", bOnClick )
changed in
oButton:QTObject:connect( oButton, "clicked()", bOnClick )
But this is also not the solution -> MyProg hangs.
Any suggestions ?
My style of writing computerlines is more like hbqt then hmg (svn/samples/buttonbox/demo_1 en demo_@
so hmg.ch does something good to demo_1 and demo_2
i write more like:
oTB:=ButtonBox():New("oTB")
oTB:addButton("B1",BUTTON_OK,{||MsgInfo("b1")})
oTB:addButton("B2",BUTTON_OK,{||MsgInfo("b2")})
Called from ButtonBox:addbutton(99)
Line 99 in buttonbox.prg
myProg.ppo:
:addButton("B1",0x00000400,{||MsgInfo("b1")})
This gives the error
if you look at hmg.4\svn\samples\buttonbox\demo_2.ppo
:addButton( 0x00000400,,{||MsgInfo("ok")})
And this is good.
So first parameter must be Role, then button and the block!?
Line 91 and 95 in buttonbox.prg must be
not ::oQTObject:addButton( xButton:QtObject , nRole )
but ::oQTObject:addButton( nRole, xButton:QtObject )
????
Nope .. i have rebuild libhmg.a and now i get an error on
::oQTObject:addButton( nRole, xButton:QtObject ) in buttonbox.prg.
I have also tryed line 99:
oButton:QTObject:connect( "clicked()", bOnClick )
changed in
oButton:QTObject:connect( oButton, "clicked()", bOnClick )
But this is also not the solution -> MyProg hangs.
Any suggestions ?
My style of writing computerlines is more like hbqt then hmg (svn/samples/buttonbox/demo_1 en demo_@
so hmg.ch does something good to demo_1 and demo_2
i write more like:
oTB:=ButtonBox():New("oTB")
oTB:addButton("B1",BUTTON_OK,{||MsgInfo("b1")})
oTB:addButton("B2",BUTTON_OK,{||MsgInfo("b2")})