delphi - what causes this strange painting "corruption"? -


our application largely single screen application. when entering mode, hide tribbon , replace tpanel has tspeedbutton components on it. (see below). ignore unevenness, button captions, etc.

ok

after go normal mode , come special mode, corrupted. suggestions what's happening? strangely, if move mouse on buttons, appearance of images changes.

bad

thank all. found way fix it.

it's software general use if low quality video drivers vulnerable problem, needed change things.

it not on vm; win7 computer. know of vmware issues because use vmware.

redrawing didn't @david heffernan's comment gave me idea got me answer. idea paint panel bitmap & write bitmap file throughout process.

  procedure writetoolbarbitmapfile(stext:string);   var     bmp:tbitmap;   begin     bmp:=tbitmap.create;     try       bmp.width:=pnlimtoolbar.width;       bmp.height:=pnlimtoolbar.height;       pnlimtoolbar.paintto(bmp.canvas, 0, 0);       bmp.savetofile('c:\tmp\' + formatdatetime('hh-nn-ss', now) + ', ' + stext + '.bmp');           bmp.free;     end;   end; 

it directly became apparent problem occurring when tried set position of panel having problem (pnlimtoolbar) make sure position above control. changed other control position set instead.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -