hmg.4 bug ButtonBox.prg ?

Moderator: Rathinagiri

Post Reply
JosK
Posts: 46
Joined: Tue Nov 08, 2011 11:38 pm

hmg.4 bug ButtonBox.prg ?

Post by JosK »

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")})
Last edited by JosK on Wed Jan 18, 2012 11:31 am, edited 1 time in total.
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: hmg.4 bug ButtonBox.prg ?

Post by danielmaximiliano »

Try

Svn Update
Buildlib

drag and drop demo_1.prg over build.bat, compile perfectly, to run this legend shows
buttonbox_2012-01-17_23-06-58.png
buttonbox_2012-01-17_23-06-58.png (72.33 KiB) Viewed 2435 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
JosK
Posts: 46
Joined: Tue Nov 08, 2011 11:38 pm

Re: hmg.4 bug ButtonBox.prg ?

Post by JosK »

danielmaximiliano wrote:Try

Svn Update
Buildlib

drag and drop demo_1.prg over build.bat, compile perfectly, to run this legend shows
buttonbox_2012-01-17_23-06-58.png
Yeps .. that is also not good. Different error ;-)
Post Reply