Bitmap Style Designer

Bitmap Style Designer给我的第一印象就是简陋,估计也是为了赶工。大致体会了一下,还是能够使用。因为目前没有对此有比较详细的中文资料,就把自己的使用心得总结一下。

Bitmap Style Designer对于VCL Style的支持相对还是比较不错的, 可以新建,可以打开,可以编辑。而对于Firemonkey Style就显得有些捉襟见肘了,不过我们还是可以绕过去的。

新建,保存

新建的时候,在新建图标的下拉框中可以选择metro ui style , ios style (目前还不支持预览,毕竟设备的差距比较大,估计不久之后应该会出对应的模拟器了吧),默认的就是vcl style。新建完了就可以进行和编辑。不过默认保存的是*.vsf格式的,修改保存类型就可以得到我们需要的*.style文件了,一点都不易用⊙﹏⊙b。这种方法可以让我们把vcl style 转化为 firemonkey style的

编辑

首先我们new一个metro style,在左侧Objects中的images中我们可以看到两张图,需要什么风格直接导出修改图片即可。是不是很简单,让美工单独去干吗,我们就可以用默认的先开发了。如果美工不靠谱,把图标的位置放错了,那怎么办?

放心吧,有办法解决。

找到objects节点,展开。在右侧一般都能看到Bitmap属性,点开它,会发现这就是设置控件对应的图标的地方,通过鼠标左键和右键圈定需要的范围即可。所以我们的图片完全不用和原来的一致。

关于Colors的设置目前还没有摸出门道来,感觉没什么实际的价值,默认即可。

官方的说明是这样子的:

http://docwiki.embarcadero.com/RADStudio/XE4/en/Creating_a_Style_using_the_Bitmap_Style_Designer

§ Click Colors in the Objects tree to see a list of base colors that are used in the current style. There are two categories of colors:The first category includes colors used for control parts that are rendered directly from an image. In this case, the color item offers you a way to access the color of that image. For instance, the Window item specifies the color of the form background.

Note that changing this color does not affect the way the control part is rendered, but is only a way to programmatically access that color. To do that, call StyleServices.GetStyleColor.

For example, to obtain the color used for form background, call StyleServices.GetStyleColor(scWindow).

§ The second category includes the colors used for controls that are rendered from code at run time (Panel, ListBox, Grid, and so on). In this case, modifying the color in the Colors list changes the appearance of the control.

预览

其实预览功能还是还是挺有帮助的,不仅仅是查看效果。它还提供了一些控件属性设置的方法。

Metro style的预览有两种,一种是Metro,一种是Firemonkey的。

对于Metro的,可以通过键盘的上下键 查看缩放界面的效果。Load style还支持你载入其他风格预览

同样Firemonkey下也可以指定其他style进行预览。

其他的再慢慢摸索吧~

Bitmap Style Designer非官方说明的更多相关文章

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

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

  2. FireMonkey Style Designer

    http://docwiki.embarcadero.com/RADStudio/Berlin/en/FireMonkey_Style_Designer http://docwiki.embarcad ...

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

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

  4. xe Style

    //注意引用:vcl.themes, vcl.styles, IOutils procedure TForm1.FormCreate(Sender: TObject); var stylename: ...

  5. 如何改变 FMX ListView 颜色

    需求:改变 ListView 颜色 适用:Firemonkey 任何平台 操作:Style 是改变控件外观最便捷的途径,ListView 也不例外,下面示范使用 StyleBook 来设定 ListV ...

  6. Delphi XE 新功能试用:多种皮肤样式静、动态设置方法

    静态方式:1.新建VCL Forms Application:2.打开菜单Project - Application - Appearance:3.在Custom Styles中可选择所有默认带的皮肤 ...

  7. delphi Style TBitmapLink

    New Bitmap Links Editor http://docwiki.appmethod.com/appmethod/1.17/topics/en/What's_New A new edito ...

  8. 设置Delphi XE4默认界面样式

    VCL BitMap Style   Proceject Options->Application->Appearance 选择几个样式 使用代码设置   uses Vcl.Themes; ...

  9. 2016年 Delphi Roadmap

    2016年delphi Roadmap 发布,这也是新公司的第一次发布路线图. 虽然稍微晚点( 原来说是1月份发布路线图),至少比过去积极点.喧嚣多年的靴子终于落地. Linux 的支持终于正式公布. ...

随机推荐

  1. boost::thread用法

    最近在做一个消息中间件里面涉及到多线程编程,由于跨平台的原因我采用了boost线程库.在创建线程时遇到了几种线程创建方式现总结如下: 首先看看boost::thread的构造函数吧,boost::th ...

  2. org.tigris.subversion.javahl.ClientException: Attempted to lock an already-locked dir svn: Working c

    Eclipse插入svn提交出现:org.tigris.subversion.javahl.ClientException: Attempted to lock an already-locked d ...

  3. RBAC - 基于角色的权限控制

    ThinkPHP中关于RBAC使用详解 自己的源码下载:百度网盘,thinkPHP文件夹下,RBAC文件夹. 重要的是,权限信息的写入函数等.在源码中能找到,Modules/Amin/Common/c ...

  4. c/c++字符数组和字符串大揭秘

    第一:写这篇文章源于我对'\0'和“\0”的探讨 当我对char a []="\0"; int size_a=sizeof(a); //结果为2 当时我很纳闷字符串不是以'\0'结 ...

  5. Checkbox in DataList

    一,效果图. 二,源代码. <!DOCTYPE html><html><head> <meta charset="UTF-8"> & ...

  6. ISO C Random Number Functions

    This section describes the random number functions that are part of the ISO C standard. To use these ...

  7. 设计模式(七)组合模式Composite(结构型)

    设计模式(七)组合模式Composite(结构型) 1. 概述 在数据结构里面,树结构是很重要,我们可以把树的结构应用到设计模式里面. 例子1:就是多级树形菜单. 例子2:文件和文件夹目录 2.问题 ...

  8. CCIE路由实验(4) -- BGP路由控制

    1.过滤BGP路由的方法2.用AS-path filter控制路由3.用Community Filter控制路由 enableconf tno ip do loenable pass ciscolin ...

  9. VC++界面编程之--使用分层窗口实现界面皮肤

    使用分层界面来实现界面皮肤的好处是:可以保证图片边缘处理不失真,且能用于异形窗口上,如一些不规则的窗口,你很难用SetWindowRgn来达到理想效果. 在很多情况下,界面的漂亮与否,取决于PS的制作 ...

  10. Eclipse下执行main函数报java.lang.NoClassDefFoundError的解决

    今天执行eclipse下的一个java类,无论run还是debug,都报java.lang.NoClassDefFoundError.而且把main中函数都注释掉,执行还是报一样的错. 检查了一下这个 ...