Lazarus
Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: cd on October 07, 2012, 10:08:22 pm
-
Hi circular
after a while i returned to a project where bgracontrols (and also bgrabitmap itself) are used. with one change - the lazarus has been updated to svn and freepascal also to svn.
and now i cant get it back to work: all the components are just blank - see screenshot of a test application in attachment with two bgrabuttons.
during istallation there is an error in BGRAGtkBitmap.pas at line 70
type TGtkDeviceContext = TGtk2DeviceContext;
which - if comment out - i have it compiled.
the bgrabitmappack is the latest from sf.
need your help here!
-
Can you try bgra controls from SVN / git? TBGRAButton is deprecated, source in SVN has TBCButton, TBCPanel etc
-
Does this problem happen with Lazarus version 1.0 ?
-
It worked with Lazarus 1.0 but I have this problem with 1.02.
-
Well BGRABitmap is not garanteed to work with intermediate versions.
Commenting out those lines has solved the problem in Code Typhoon.
Maybe something has changed in Gtk units.
-
Yes it look commenting this line allow to pass compilation and make bgrabitmap to work correctly.
But some other change in 1.02 make bgracontrol to not display on the forms.
1.02 is current Lazarus stable version:
http://www.lazarus.freepascal.org/index.php/topic,18538.html
-
Hmmm, a bug fix release that add new bugs ?
I'm puzzled.