Color gradient in Delphi FireMonkey】的更多相关文章

Introduction to color gradients in Delphi FireMonkey. 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…
delphi Firemonkey ListBoxItem自绘 ListBoxItem1的事件ListBoxItem1Paint procedure TForm1.ListBoxItem1Paint(Sender: TObject; Canvas: TCanvas; const ARect: TRectF); begin if (Sender as TListBoxItem).IsSelected then begin Canvas.Fill.Kind := TBrushKind.Solid;…
有过UI设计经验的一定对2D图形渲染中的Color Gradient 或多或少有些接触,很多编程 语言也提供了Gradient的接口,但是想知道它是怎么实现的嘛? 本文介绍三种简单的颜色梯度变化算法,就可以很容易实现常见的梯度变化算法 三种都要求提供两个参数即起始颜色RGB值, 最终颜色RGB的值. 垂直梯度颜色变化,效果如下: 水平梯度颜色变化,效果如下: 水平与垂直两个方向叠加梯度变化效果如下: 算法代码及其解释   计算起始颜色和终点颜色RGB之间差值代码如下: float rr = st…
delphi Firemonkey ListView 使用参考 Tokyo版本 http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Customizing_FireMonkey_ListView_Appearance http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Mobile_Tutorial:_Using_LiveBindings_to_Populate_a_ListView_(iOS_and…
Delphi Firemonkey Button ImageList 按钮图标 在上面 界面上,选择Button,放个ImageList控件,添加图标到ImageList. 然后关联Button和ImageList.设置ImageIndex属性. 然后Button右键Edit Style>选择Text>Align>Bottom; TGlyph>Align>Client OK啦. 也可以设置两个之间的高度!…
Get and set the Z Order of controls at runtime in Delphi FireMonkey. This is a follow on to my earlier post where I provided a VCL solution.Now Ive created a free FireMonkey unit that has the same get and set routines as the VCL solution.  The full s…
首次用Delphi XE6 开发安卓程序,并没有在网上找到连接远程MySQL服务器的文档,自己摸索一番,发现UniDAC控件新版本也已支持了FireMonkey下的开发.遂记下连接方法和大家分享. 1.新建FireMonkey Mobile Application 2.在设计界面上放上三个控件:TUniConnection(命名为con1).TUniQuery(命名为unqry1).TMySQLUniProvider 3.将TUniQuery的"Connection"属性绑定为TUni…
先看下面的FMX.Layouts.pas中一段代码 procedure TCustomScrollBox.MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin FMouseEvents := True; inherited; if (Button = TMouseButton.mbLeft) then begin MousePosToAni(X, Y); AniMouseDown(ssTouch in S…
// define head function #ifndef PS_ALGORITHM_H_INCLUDED #define PS_ALGORITHM_H_INCLUDED #include <iostream> #include <string> #include "cv.h" #include "highgui.h" #include "cxmat.hpp" #include "cxcore.hpp&quo…
XE Button Color,FMX Button 颜色 也可以放个rectangle+Glyph控件. http://blogs.embarcadero.com/sarinadupont/2014/05/20/customize-your-mobile-ui-in-xe6/   Easily customize your mobile UI in XE6 In RAD Studio XE6, we introduced a new property for TSpeedButton, TBu…