Recent

Author Topic: TBitBtn glyphs on theme aware applications (XP/Vista)  (Read 10669 times)

giorgiotani

  • Guest
TBitBtn glyphs on theme aware applications (XP/Vista)
« on: November 25, 2007, 11:31:40 am »
Hi, another isue with image transparency I noticed is a quite strange one.
If I enable using manifest to make the application theme aware under XP/Vista, TBitBtn glyphs bitmaps cannot use correctly transparency, the bitmap background (the color corresponding to pixel 1,1) is set to white rather than transparent.

I mean: create an empty form, create a TBitBtn button, load an image with gray background, enable theme awareness using manifest in project's options, compile.
The application shows the button with the bitmap which now has a white background rather grey (as originally was) or transparent (as it would be expected).
This is expecially visible on Vista, when activating the button make it turn from light gray to light blue, the bitmap background stays white rather than uniforming to new button's color.

If I explicitely set to use gray as transparent color, nothing changes: the glyph will have white background instead of gray or transparent, so as in the previous case the application seem knowing it has to replace gray whit something, but replaces it with white rather than making it transparent as in previos version was.
As counterproof, if I change the transparent color to something else, i.e. purple, the application knows it has not to replace gray and I see the glyph with original gray background.

If I disable using manifest in project options I see old style buttons and glyphs transparency is applied correctly as for I can see on my monitor.

I tried also to use manifest through an old, well known Lazarus package, the WinXP lpi I found linked somewhere in this forum some years ago, but the result doesn't change with 0.9.24 when the application is made theme aware and uses manifest glyph's transparency is not applied correctly: the background color is correctly recognized but is replaced with white rather than made transparent.

Is there a workaround or fix for that problem?
Thank you in advance for any response
 Giorgio

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2695
RE: TBitBtn glyphs on theme aware applications (XP/Vista)
« Reply #1 on: November 26, 2007, 11:38:57 am »
please bugrep
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

giorgiotani

  • Guest

giorgiotani

  • Guest
TBitBtn glyphs on theme aware applications (XP/Vista)
« Reply #3 on: December 02, 2007, 02:56:22 pm »
Glad to see the isue is yet patched in 0.9.25 SVN, http://www.freepascal.org/mantis/view.php?id=10276
However, is 0.9.26 stable version planned for near future?

I ask this since I would not publish a new Windows version of PeaZip with such evidently bogus button graphic (I know it's nothing worrying, but the average Windows user will not be happy of the "upgrade"), and at the same time I'm quite worried to compile it with an SVN version that as disclaimer explicitely says it's just (auto) tested to be good enough to be compiled, not intended for use in real production, and moreover there is the very displeasing possibility that my source get corrupted by the experimental IDE and I had to throw away days or weeks of work at a certain point.

If there are some snapshots good enough to be used for production that has this BitBtn transparence issue fixed, please let me know (even if they are not the latest ones), otherwise I'll have to wait for 0.9.26 before reconsidering migrating to newer Lazarus version, throwing away most of the work of last weeks intended to adapt the code which patched 0.9.20 issues (i.e. the combobox onclich/onediting done isse, or the similar checkbox onclick/onchange issue under GTK and GTK2) for the 0.9.24.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2695
TBitBtn glyphs on theme aware applications (XP/Vista)
« Reply #4 on: December 03, 2007, 11:40:38 am »
you can ask to merge this fix in the .24 fixes branch (which should be more stabelthan trunk)
about .26, we try to get back to our 3 months release schedule
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

giorgiotani

  • Guest
TBitBtn glyphs on theme aware applications (XP/Vista)
« Reply #5 on: December 03, 2007, 08:40:37 pm »
Hi, thank you for the prompt response.
Initially I thought about rebuilding 0.9.24 including the fixe for that problem rather than using the SVN build, but then I realized this patch could be important for many people developing for Windows platforms, so being it meaningful for many people it IMHO should be included in official updates/fixes.
Where is it possible to ask for this patch to be included in official fix as you suggest?
Is the request on the forum (or on the bug tracker?) enough or there is a different procedure?

Bart

  • Hero Member
  • *****
  • Posts: 5715
    • Bart en Mariska's Webstek
TBitBtn glyphs on theme aware applications (XP/Vista)
« Reply #6 on: December 03, 2007, 11:45:37 pm »
Asking in the bugtracker should be enough AFAIK.

Bart

 

TinyPortal © 2005-2018