Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: cd on October 07, 2012, 10:08:22 pm

Title: cant get bgracontrols work in lazarus-svn
Post 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
Code: [Select]
type TGtkDeviceContext = TGtk2DeviceContext;which - if comment out - i have it compiled.

the bgrabitmappack is the latest from sf.

need your help here!
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: Dibo on October 07, 2012, 10:41:07 pm
Can you try bgra controls from SVN / git? TBGRAButton is deprecated, source in SVN has TBCButton, TBCPanel etc
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: circular on October 08, 2012, 10:39:03 pm
Does this problem happen with Lazarus version 1.0 ?
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: pch on October 11, 2012, 04:39:21 pm
It worked with Lazarus 1.0 but I have this problem with 1.02.
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: circular on October 11, 2012, 05:42:18 pm
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.
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: pch on October 12, 2012, 11:00:27 am
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
Title: Re: cant get bgracontrols work in lazarus-svn
Post by: circular on October 13, 2012, 08:48:08 pm
Hmmm, a bug fix release that add new bugs ?

I'm puzzled.
TinyPortal © 2005-2018