New Bitmap Links Editor

http://docwiki.appmethod.com/appmethod/1.17/topics/en/What's_New

A new editor allows graphic edition for TBitmapLink properties on styled-objects, directly inside the IDE.

TBitmapLink properties can be edited now in an easy and visual way using the BitmapLinks Editor.

For more information, see BitmapLinks Editor and Tutorial: Using the BitmapLinks Editor.

Create Custom Button Styles For Firemonkey In #Delphi 10 Seattle On Android And IOS

http://www.fmxexpress.com/create-custom-button-styles-for-firemonkey-in-delphi-10-seattle-on-android-and-ios/

Developer Sarina DuPont from Embarcadero has a tutorial up on how to create a custom button using styles for Firemonkey in Delphi 10 Seattle. Styles in Firemonkey are bitmap based and this tutorial shows how to load a custom button image and set it up on a button. You can use these custom styles in your apps on Android, IOS, OSX, and Windows. You access the style editor by right clicking on the object and selecting Edit Custom Style. The style editor supports having different images for the different resolutions of the different devices. For buttons it uses a 9 grid to handle the button resizing dynamically. The image is segmented into 9 pieces with one piece in each corner, one piece on each side, and one piece in the middle. The button states (up, down, etc.) are handled in a BitmapLinks editor. In the case of a button it has NormalLink, HotLink, PressedLink, and FocusedLink. This basically means that each “link” is a specific image for the state of the button during that kind of event. You should be able to following this tutorial for Appmethod and C++Builder as well. Don’t have time to create your own styles? Check out the free premium styles.

Tutorial: Using the BitmapLinks Editor

http://docwiki.embarcadero.com/RADStudio/Berlin/en/Tutorial:_Using_the_BitmapLinks_Editor

This tutorial explains how to edit the TBitmapLink properties of a TButton component using the BitmapLinks Editor.

Let us consider a one-button multi-device application. The button has different background colors for each of the possible link types listed in the following table:

Link type Definition

NormalLink

The default status.

FocusedLink

A focused link. In our scenario, when the button takes the focus, for example, while hovering the mouse over the button.

PressedLink

A clicked link. In our scenario, while clicking the button.

HotLink

A visited link. In our scenario, after clicking the button.

Customizing BitmapLink Properties for a Button

This section illustrates how to customize the button background. Perform the following steps:

  1. Create a new Multi-Device Application, either Delphi or C++Builder.
  2. On the Form Designer, drop a TButton component.
  3. To open the FireMonkey Style Designer, right-click the button, and on the context menu, select Edit Custom Style.
  4. In the Structure pane, select the background node.
  5. In the Object Inspector, select the NormalLink property and double-click its value to open the BitmapLinks Editor.
  6. In the BitmapLinks Editor, click to load the image file that you want to use to customize the button.
    In our example, we use the following image file:
  7. Select NormalLink from the Links panel.
  8. Select the resolution from the Resolutions panel.

    Note: For Windows style the only available resolution is Scale 1,00x.

  9. In the bitmap, select an area to use as the button background.

    Note: The selection appears on the Previsualization panel. In our scenario, for NormalLink, we have selected the blue rectangle.

  10. Perform steps 7 to 9 for each of the links: HotLink, FocusedLink and PressedLink.
  11. Click Close to exit from the BitmapLinks Editor.
  12. Apply changes in the FireMonkey Style Designer, click Apply and Close.
  13. Run the application to see the results.

delphi Style TBitmapLink的更多相关文章

  1. DateTimePicker如何与Delphi自带Style同步

    Delphi 的 DateTimePicker 组件有一个CalColors属性,可以设置 DropDown 打开的日历节目的风格.但如果不使用 Delphi 自带的 Style,在这里设置属性看不到 ...

  2. Delphi 完全时尚手册之 Visual Style 篇 (界面不错) 转自http://blog.csdn.net/iseekcode/article/details/4733229

    这里先说说两个概念:Theme(主题)和 Visual Style .Theme 最早出现在 Microsoft Plus! for Windows 95 中,是 Windows 中 Wallpape ...

  3. Delphi 完全时尚手册之 Visual Style 篇

    这里先说说两个概念:Theme(主题)和 Visual Style .Theme 最早出现在 Microsoft Plus! for Windows 95 中,是 Windows 中 Wallpape ...

  4. Delphi XE5 for android 使用 BITMAP STYLE DESIGNER 改变控件背景

    一.BITMAP STYLE DESIGNER 工具集成在IDE开发工具的TOOLS菜单. 使用NEW 新建一个安卓样式.NEW—NEW ANDROID STYLE FOR FIREMONKEY. 这 ...

  5. Delphi ComboBox组件 style=csDropDownlist 的赋值方法

    赋值方法: ComboBox1.Items.Add( '文本 '); ComboBox1.ItemIndex := ComboBox1.Items.IndexOf( '文本 '); 清空: Combo ...

  6. 转:Delphi 6 实用函数

    来自: daocaoren0824, 时间: -- ::, ID: 再给你一份 程序员实用函数 {▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎▎} {▎ ▎} {▎ 大 ...

  7. 转:Delphi 函数大全

    Delphi 函数大全 - xiucaiyao的专栏 - 博客频道 - CSDN.NEThttp://blog.csdn.net/xiucaiyao/article/details/4544039 名 ...

  8. 转:看看 Delphi XE2 为 VCL 提供的 14 种样式

    http://www.linuxso.com/linuxbiancheng/8889.html 其实只提供了 个 vsf 样式文件, 还有默认的 Windows 样式, 共 种. 在空白窗体上添加 L ...

  9. [工具] Firemonkey Style 调色工具(可另存 Style 文件)

    版本:2016.12.21 (新增可取代颜色) 下载:[工具]OneStylePalette_调色工具_20161221.zip 版本:2016.12.09 (新增可导出全平台的 Style) 下载: ...

随机推荐

  1. == 与 equals 的区别

    今天跟开发修复一个bug,现在列出来这个绕口的比较 场景一: Long a = 1: Long b = 1: boolean result = (a == b); //此时result的值为false ...

  2. Java BigDecimal 加减乘除运算

    加法:add 减法:subtract 乘法:multiply 除法:divide BigDecimal bignum1 = new BigDecimal("10"); BigDec ...

  3. css3 em rem等单位的区别

    px:绝对单位,页面按精确像素展示 em:相对单位,基准点为父节点字体的大小,如果自身定义了font-size按自身来计算(浏览器默认字体是16px),整个页面内1em不是一个固定的值. rem:相对 ...

  4. ionic 启用sass

    转入ionic项目目录,命令行下执行:ionic setup sass 提示编译器未装: You have specified Ionic CI to set up sass.However, you ...

  5. Mesos

    1. 软件定义数据中心 Mesos的二级调度机制: maseos协调每个节点的slave,获取每个节点的机器资源.获取资源后,在相应节点运行framework,在容器中执行任务.从而使得多种类型的服务 ...

  6. 使用X-UA-Compatible来设置IE浏览器兼容模式(转)

    使用X-UA-Compatible来设置IE浏览器兼容模式 文件兼容性用于定义让IE如何编译你的网页.此文件解释文件兼容性,如何指定你网站的文件兼容性模式以及如何判断一个网页该使用的文件模式. 前言 ...

  7. jquery 获取元素在浏览器中的绝对位置

    代码详解 1,获取对象(自定义调整打开新窗口参照元素) var obj = $("#oButton"); 实例中我获取的对象是弹出窗口按钮,这样创建的新窗口就会根椐按钮的位置进行调 ...

  8. Parallel类实现并行计算

    https://msdn.microsoft.com/zh-cn/ff652648.aspx 图像处理——并行计算的应用实例 http://blog.csdn.net/bitfan/article/d ...

  9. 【转】ORACLE定期清理INACTIVE会话

    源地址:http://www.cnblogs.com/kerrycode/p/3636992.html ORACLE数据库会话有ACTIVE.INACTIVE.KILLED. CACHED.SNIPE ...

  10. 02-C#入门(循环)

    记得第一次学编程的时候,就听说过一句话:“新手学习和掌握一门编程语言是很容易的,但是如果你学会了某种编程语言,再去学习新的语言,就很难掌握了”,现在深深地感受到了这方面的阻力. 其实流程控制.循环,包 ...