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")})
hmg.4 bug ButtonBox.prg ?
Moderator: Rathinagiri
hmg.4 bug ButtonBox.prg ?
Last edited by JosK on Wed Jan 18, 2012 11:31 am, edited 1 time in total.
- danielmaximiliano
- Posts: 2611
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: hmg.4 bug ButtonBox.prg ?
Try
Svn Update
Buildlib
drag and drop demo_1.prg over build.bat, compile perfectly, to run this legend shows
Svn Update
Buildlib
drag and drop demo_1.prg over build.bat, compile perfectly, to run this legend shows
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: hmg.4 bug ButtonBox.prg ?
Yeps .. that is also not good. Different errordanielmaximiliano wrote:Try
Svn Update
Buildlib
drag and drop demo_1.prg over build.bat, compile perfectly, to run this legend shows