Alpha controls delphi 78/9/2023 ![]() Similar code may be used for receiving of background for other custom controls, also. If bgInfo.BgType = btCache then // If BG should be copied (complex image)īitBlt(.Handle, 0, 0, Chart.Width, Chart.Height,, + Chart.Left, + Chart.Top, SRCCOPY)Įlse // otherwise fill BG by received colorįillDC(.Handle, Rect(0, 0, Chart.Width, Chart.Height), bgInfo.Color) Ĭ() Įxample of using of the above code look in this demo ![]() Creation of bitmap for the Chart.BackImage property (if not exists)Ĭ := TBitmap.Create Ĭ := Chart.Width Ĭ := Chart.Height Ĭ := pf32bit Receive a BG data from a skinned parent of Chart.Parent) If not InUpdating() then begin // If parent background is ready That is why non-TForm components do not have AlphaBlend or TransparentColor properties.What you are asking for it not possible using standard components as-is. Procedure UpdateChartBackImage(Chart: TChart) Prior to Windows 8, child controls cannot have the WSEXLAYERED window style applied to them. Receive a background for the control and repainting of chart
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |