Thema: Delphi Styles in XE2 and TImage

Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Styles in XE2 and TImage

  Alt 20. Sep 2011, 15:09
Delphi-Version: 2010
Today I got XE2 , I'm very excited , I quickly started test it.

Yesterday I wrote test app in 2010, a few buttons and one TImage on panel. On image is visible generated bitmap after buttons click.

I opened this app in XE2, nice, working . Now I enabled style and... empty TImage - need to dbl call rendering function to make bitmap visible

Delphi-Quellcode:
var
  Bitmap: TBitmap;
begin
  Bitmap := TBitmap.Create;
  try
    { Render here........... }

    Image1.Picture.Bitmap.Assign(Bitmap);
  finally
    Bitmap.Free;
  end;
end;
This is very, very, very trivial - in system style image is visible after simgle call, when styles used need to dbl call to see effect. Why? How to fix it?
  Mit Zitat antworten Zitat