zoukankan      html  css  js  c++  java
  • Color gradient in Delphi FireMonkey

    Introduction to color gradients in Delphi FireMonkey.

    delphi_color_gradients_scott_hollows

    Video

    This video covers the basics of color gradients in Delphi FireMonkey

    This can be applied any component that has a Fill property such as Shapes (TRectangle, TElipse) and event the background of a TForm.

    Video Highlights

    The video shows :

    • Overview of setting up gradient colors
    • Change the angle to vertical, horizontal or anything in between such as 38 degrees
    • Set the weight of each color.  You can make one color more prominent than the other
    • Setup more than 2 colors
    • Change gradient properties in the IDE
    • Change gradient properties at runtime using simple code

    Gradient aren’t available for TPanel, TFrame and other components … dont panic

    Now for the bad news – Gradient colors are not available for TPanel, TFrame, TGroupBox and various other container because they do not have a Fill property.  Oh ohhhh !

    Dont panic – I have a workaround for that that will publish a solution  on here soon including full source code.  If you are in a hurry, email me and Ill provide you with a pre-release version

    delphi_color_gradients_scott_hollows_for_panels
    This stuff is coming.  Chill out until then

    More Information

    Download

    Download FireMonkey demo project

    https://scotthollows.com/2016/11/20/scott-hollows-color-gradient-in-delphi-firemonkey/

  • 相关阅读:
    Python_装饰器复习_30
    Python_每日习题_0002_个税计算
    linux-文件流4种读取方式
    Max Sum Plus Plus
    棋盘问题
    noip数学
    P3384 【模板】树链剖分
    P2419 [USACO08JAN]牛大赛Cow Contest
    poj3159 Candies(差分约束)
    小K的农场(差分约束)
  • 原文地址:https://www.cnblogs.com/findumars/p/6307061.html
Copyright © 2011-2022 走看看