Recent

Author Topic: cant get bgracontrols work in lazarus-svn  (Read 5011 times)

cd

  • Jr. Member
  • **
  • Posts: 54
cant get bgracontrols work in lazarus-svn
« 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!

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: cant get bgracontrols work in lazarus-svn
« Reply #1 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

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: cant get bgracontrols work in lazarus-svn
« Reply #2 on: October 08, 2012, 10:39:03 pm »
Does this problem happen with Lazarus version 1.0 ?
Conscience is the debugger of the mind

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
Re: cant get bgracontrols work in lazarus-svn
« Reply #3 on: October 11, 2012, 04:39:21 pm »
It worked with Lazarus 1.0 but I have this problem with 1.02.

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: cant get bgracontrols work in lazarus-svn
« Reply #4 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.
Conscience is the debugger of the mind

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
Re: cant get bgracontrols work in lazarus-svn
« Reply #5 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

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: cant get bgracontrols work in lazarus-svn
« Reply #6 on: October 13, 2012, 08:48:08 pm »
Hmmm, a bug fix release that add new bugs ?

I'm puzzled.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018