Hi!
Linux(GTK)
~~~
...
If HB_IsObject(&oPDV)
&oPDV:SetBitMap(cPDV)
...
~~~
Error HCUSTOMWINDOW/0 Invalid class member
Called from (b)HWG_ERRSYS(19)
Called from HBUTTONEX:SETBITMAP(241)
Called from DESENHAICONES(93)
Called from (b)REFRESHPDV(21)
Called from HWG_TIMERPROC(93)
Called from HWG_ACTIVATEDIALOG(0)
Called from HDIALOG:ACTIVATE(185)
Called from DESENHAPDV(68)
Called from AREAPDV(10)
Called from (b)ESCOLHEPERFIL(828)
Called from HOWNBUTTON:MUP(323)
Called from HOWNBUTTON:ONEVENT(151)
Called from HWG_ACTIVATEMAINWINDOW(0)
Called from HMAINWINDOW:ACTIVATE(340)
Called from MAIN(445)
HWGUI 2.23 dev Build 7
Date:16/12/23
Time:08:48:12
PS. Windows run ok, no problems!
Best regards,
Itamar M. Lins Jr.
The ex controls from contrib dir are for Windows only and I have no plans to port them to Linux.
Use ownerbutton instead of buttonex.
Regards, Alexander.
Hi!
Very strange, that.
I removed all entries from my sources from the extended controls.
Unfortunately this went unnoticed.
But see that ButtonEx exists on Linux and I didn't realize it.
attached screen in Linux
Best regards,
Itamar M. Lins Jr.
Yes, I see. The buttonex class remains in gtk sources. It' only "ex" was that it was supposed to support the bitmap on a button.
Now I removed it and added :SetImage( oImg ) method to hbutton class, both to gtk and winapi, oImg is an object of HBitmap or HIcon class.
The @ ... BUTTON command also changed, the [ IMAGE oImg ] clause added.
Regards, Alexander