Recent

Author Topic: SpkToolbar requires 24-bit Bitmaps  (Read 6776 times)

wp

  • Hero Member
  • *****
  • Posts: 13578
SpkToolbar requires 24-bit Bitmaps
« on: May 25, 2012, 08:19:10 pm »
When I compile and run the demo program that comes with SpkToolbar exceptions are thrown in SpkGuiTools; the polish error message seems to say that 24-bit bitmaps are required; when the exception occurs TSpkToolbar.FBuffer is a 32bit-Bitmap. However, when I look at the source this bitmap format is never generated. Does anybody have an idea how to solve this?

Win 7, FPC 2.6.0, Lazarus 1.1 snapshot

wp

  • Hero Member
  • *****
  • Posts: 13578
Re: SpkToolbar requires 24-bit Bitmaps
« Reply #1 on: May 27, 2012, 01:20:49 am »
I must have had a version mixup: after deleting my Lazarus profile the SpkToolbar works fine again.

lainz

  • Guest
Re: SpkToolbar requires 24-bit Bitmaps
« Reply #2 on: May 27, 2012, 01:55:56 am »
This is a nice component, but really slow the last time I've tested it. I've tried with no results to do one with BGRABitmap, the complex thing is not the graphics, for me is 'focusing' a group of components and then focus one particulary (like in Office 2010). The rest basically can be done with panels and buttons, and to skin the other components with CustomDrawn for example.

wp

  • Hero Member
  • *****
  • Posts: 13578
Re: SpkToolbar requires 24-bit Bitmaps
« Reply #3 on: May 27, 2012, 11:05:11 am »
So far I can live with the speed, maybe I should go to an older PC for a more detailed test...

I have added checkboxes and radiobuttons to the component and fixed some issues with the interaction with TAction. I will post the component here once I'm finished with the design code, see the attachment as an appetizer.

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: SpkToolbar requires 24-bit Bitmaps
« Reply #4 on: May 27, 2012, 01:07:47 pm »
Does SpkToolbar support BiDiMode and RightToLeft drawing?
Lazarus Trunk / fpc 2.6.2 / Win32

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: SpkToolbar requires 24-bit Bitmaps
« Reply #5 on: May 27, 2012, 04:55:57 pm »
So far I can live with the speed, maybe I should go to an older PC for a more detailed test...

I have added checkboxes and radiobuttons to the component and fixed some issues with the interaction with TAction. I will post the component here once I'm finished with the design code, see the attachment as an appetizer.

Very good! Waiting to see the final product.
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018