![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
![]() |
Mon, May 16 2016 9:59 AM | Permanent Link |
Trinione | How to set the background fill progmatically?
|
Mon, May 16 2016 10:03 AM | Permanent Link |
Trinione | No reply necessary if the following is correct:
Panel1.Background.Fill.FillType := ftGradient; with Panel1.Background.Fill.Gradient do begin GradientType := gtLinear; ColorStops.ColorStop[0].Position := 0; ColorStops.ColorStop[0].Color := clWhite; ColorStops.ColorStop[1].Position := 100; ColorStops.ColorStop[1].Color := clBlue; end; |
Mon, May 16 2016 10:06 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | Try this:
with TempPanel.Background.Fill.Gradient.ColorStops.Add do Color := clTransparent; with TempPanel.Background.Fill.Gradient.ColorStops.Add do begin Position := 100; Color := clCornSilk; end; Chris Holland [Team Elevate] On 16/05/2016 14:59, Trinione wrote: > How to set the background fill progmatically? > |
Tue, May 17 2016 12:25 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << No reply necessary if the following is correct: >>
Chris's example is correct - you need to use the Add method, otherwise you're referencing color stops that don't exist yet: http://www.elevatesoft.com/manual?action=viewcomp&id=ewb2&comp=TGradientColorStops Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, March 26, 2023 at 04:50 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |