Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   [VirtualTreeView] Transparenz und toAnimatedToggle (https://www.delphipraxis.net/165670-%5Bvirtualtreeview%5D-transparenz-und-toanimatedtoggle.html)

neo4a 10. Jan 2012 20:18

[VirtualTreeView] Transparenz und toAnimatedToggle
 
Den VTV bringt man Transparenz bei, indem man seinem BackGround.Bitmap das Bitmap das Parent.Canvas z.B. per BitBlt() zuweist.

Nun beherrscht der VTV mittels
Delphi-Quellcode:
  TreeOptions.AnimationOptions := [toAnimatedToggle];
auch eine nette Animation. Leider wird bei mir dabei der Hintergrund in der Hintergrundfarbe sichtbar.

Gibt es eine VTV-Option oder eine andere Lösung, die VTV-Animation bei zugewiesenem Background optisch korrekt ablaufen zu lassen?

Hier meine Custom-Settings:
Delphi-Quellcode:
  DoubleBuffered              := True;
  ButtonStyle                 := bsTriangle;
  DrawSelectionMode           := smBlendedRectangle;
  DefaultNodeHeight           := 26;
  BorderStyle                 := TBorderStyle(0);
  TreeOptions.AnimationOptions := [{toAnimatedToggle,} toAdvancedAnimatedToggle];
  TreeOptions.MiscOptions     := [toFullRepaintOnResize,toInitOnSave,toWheelPanning,toFullRowDrag];
  TreeOptions.PaintOptions    := [toHideFocusRect, toHotTrack, toShowBackground, toShowButtons, toShowRoot,
                                   toHideTreeLinesIfThemed, toShowDropmark, toThemeAware,
                                   toUseBlendedImages,toUseBlendedSelection,toUseExplorerTheme];
  TreeOptions.SelectionOptions := [toFullRowSelect];
  TreeOptions.SelectionOptions := [toFullRowSelect];
  Header.Options              := Header.Options - [hoVisible];


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz