Recent

Author Topic: [CLOSED] BGRAControls  (Read 550125 times)

lainz

  • Guest
Re: BGRAControls
« Reply #300 on: October 01, 2011, 01:04:55 am »
http://sourceforge.net/scm/?type=git&group_id=530771

git://bgracontrols.git.sourceforge.net/gitroot/bgracontrols/bgracontrols

This link led me to the same Sourceforge page where I downloaded the buggy zip package: bgracontrols-1.1.0.4.zip! I downloaded it again and tried to install it and the same errors show up.

I've updated 'Installation' in the Wiki:

http://wiki.lazarus.freepascal.org/BGRAControls#Install

Takeda

  • Full Member
  • ***
  • Posts: 157
bgracontrols-1.1.0.4 failed to get married with bgrabitmap4.8
« Reply #301 on: October 01, 2011, 08:14:39 am »
Yesterday I download bgrabitmap4.8..
I found, bgracontrols-1.1.0.4 failed to get married with bgrabitmap4.8. So sad..

But when I tried to use bgrabitmap4.7.2, it works and successfully to installed..

Regards,
Takeda.
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #302 on: October 01, 2011, 08:49:36 am »
I got 2 errors in the BGRAImageButton.pas file while trying to compile BGRAControls-1.1.0.4 on Linux Mint 11.

Quote
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(170,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(326,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
BGRABitmap has been changed for internal consistency. You can solve this issue by adding "as TBGRABitmap" at the end of the line.

@lainz: you should put a zip file that is compatible with last bgrabitmap zip file, because most people just download zip files.
Conscience is the debugger of the mind

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #303 on: October 01, 2011, 02:12:11 pm »
I got 2 errors in the BGRAImageButton.pas file while trying to compile BGRAControls-1.1.0.4 on Linux Mint 11.

Quote
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(170,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(326,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
BGRABitmap has been changed for internal consistency. You can solve this issue by adding "as TBGRABitmap" at the end of the line.

@lainz: you should put a zip file that is compatible with last bgrabitmap zip file, because most people just download zip files.

Thanks circular. Casting the operation to "as TBGRABitmap" like you suggested worked perfectly.

JD
« Last Edit: October 01, 2011, 02:15:05 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #304 on: October 01, 2011, 02:32:16 pm »
I've installed it and tested it on Linux Mint 11. The TestBGRAControls demo needs some work. The Flash Player setup example does not work at all. The rest of the examples in the demo either don't work or they crash with an error saying "Error initializing Pixbuf".

Cheers,

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

lainz

  • Guest
Re: BGRAControls
« Reply #305 on: October 01, 2011, 06:13:08 pm »
I got 2 errors in the BGRAImageButton.pas file while trying to compile BGRAControls-1.1.0.4 on Linux Mint 11.

Quote
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(170,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(326,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
BGRABitmap has been changed for internal consistency. You can solve this issue by adding "as TBGRABitmap" at the end of the line.

@lainz: you should put a zip file that is compatible with last bgrabitmap zip file, because most people just download zip files.

Ok.

BGRAControls 1.1.0.5:

-TBGRAButton - small fix for text align.
-BGRAImageButton fixes and speed optimization. Updated bgraimagebutton test project.
-Added Math Game in testbgracontrols.
-Added property 'Tile' in bgraspriteanimation. ToDO: If there is no Sprite loaded and you set 'Tile' to true a division by cero error is shown.
« Last Edit: October 01, 2011, 06:35:22 pm by lainz »

lainz

  • Guest
Re: BGRAControls
« Reply #306 on: October 01, 2011, 08:19:18 pm »
I've installed it and tested it on Linux Mint 11. The TestBGRAControls demo needs some work. The Flash Player setup example does not work at all. The rest of the examples in the demo either don't work or they crash with an error saying "Error initializing Pixbuf".

Cheers,

JD

I've noticed the same problem some time ago with Ubuntu 11.04.

You can delete the BGRAImageButton and BGRAButtons from the Flash Player Setup example and test it again?

If doesn't works try change this line of code:

Code: [Select]
procedure TfrmMain.btnGoFlashPlayerSetupClick(Sender: TObject);
begin
  frmFlashPlayerSetup.ShowModal;
end;   

Code: [Select]
procedure TfrmMain.btnGoFlashPlayerSetupClick(Sender: TObject);
begin
  frmFlashPlayerSetup.Show;
end;   

Also Dibo noticed that:

I commited fixes. Now it should work

P.S. I notify some "pixbuff" error when try reopen some demo modal form (for example ribbon), but with BGRAButtons only, it works fine. It seems that this is vrutalscreen or some other component, hmm.
« Last Edit: October 01, 2011, 08:20:52 pm by lainz »

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: BGRAControls
« Reply #307 on: October 01, 2011, 09:10:13 pm »
We solve "Error initializing Pixbuf" on Linux and FreeBSD (CT Ver 2.20)

Unit BGRAImageManipulation
procedure TBGRAImageManipulation.Paint;
begin 
   inherited Paint;
  {$IFDEF WINDOWS}   // 9999 for CodeTyphon
    fVirtualScreen.Draw(Canvas, 0, 0, true);
  {$ELSE}
    fVirtualScreen.Draw(Canvas, 0, 0, false);
  {$ENDIF}
end;

Units: BGRAVirtualScreen and BGRAPanel

procedure xxxxx.Paint;
.....
  {$IFDEF WINDOWS}   // 9999 for CodeTyphon
    FBGRA.Draw(Canvas,0,0,true);
  {$ELSE}
    FBGRA.Draw(Canvas,0,0,false);
  {$ENDIF}
....

CodeTyphon Architect and Programmer

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #308 on: October 01, 2011, 09:16:20 pm »
Thanks !

So apparently, there is a problem when drawing opaque on Linux ?
Conscience is the debugger of the mind

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #309 on: October 01, 2011, 09:23:19 pm »
Thanks !

So apparently, there is a problem when drawing opaque on Linux ?

Yes I can confirm that.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #310 on: October 01, 2011, 09:31:52 pm »
Maybe mixing gdk_draw_rgb_32_image and gdk_pixbuf_new_from_data makes gdk go crazy.
Conscience is the debugger of the mind

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: BGRAControls
« Reply #311 on: October 01, 2011, 09:32:55 pm »
Thanks !

So apparently, there is a problem when drawing opaque on Linux ?

Yes,
oh and Graphics32 library has the same problem...
We test 10 Linux and 2 FreeBSD distributions
CodeTyphon Architect and Programmer

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #312 on: October 01, 2011, 09:45:24 pm »
Maybe I have an idea...

Does this version (attached) solve the problem ?
Conscience is the debugger of the mind

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: BGRAControls
« Reply #313 on: October 01, 2011, 09:51:36 pm »
No,  Error 'External: SIGFPE'.
(quick test on Debian 64)
« Last Edit: October 01, 2011, 10:01:42 pm by Sternas Stefanos »
CodeTyphon Architect and Programmer

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: BGRAControls
« Reply #314 on: October 02, 2011, 01:48:47 am »
Thanks. I guess I made an error.

Well I really need to get some Linux working...
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018