DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: qiaoguoqiang
今日帖子: 0
在线用户: 5
导航: 论坛 -> 移动应用开发 斑竹:flyers,iamdream  
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/8 15:36:49
标题:
style的问题 浏览:827
加入我的收藏
楼主: stylebook使用了自带的文件夹....Redist\styles\Fmx\Win10Modern.Style后,设计界面里combobox,edit,NumberBox这些控件的边框在安卓界面都有,但是一运行又没有了,只有下面一条横线.如果选择其他的比如Air.Style边框就正常,请问怎么回事?
此帖子包含附件:
PNG 图像
大小:66.7K
----------------------------------------------
-
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/8 15:38:42
1楼: 运行后
此帖子包含附件:
PNG 图像
大小:97.8K
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/9 6:12:56
2楼: NOTE:
1) in DesignTime you has a "preview" done in Windows as was in Mobile, then some diferences appears on phisical device, in fact... try use property "ControlType" to see if change something

2) I think that there is not "border" by default in mobile, or am I wrong?

any way, you can do it using "Edit custom style" option and change the "background" style object options, for example adding some lines, picture, color, etc... for all component or just one
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/9 12:59:38
3楼: @emailx45 比如combobox没有ControlTyp属性,或者默认已经是Styled了.
添加一些线条、图片、颜色要怎么操作呢?
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/9 22:55:16
4楼: 1) right button on component

2) Edit Custom Style

3) "background" -> add a rectangle for example, and change the properties, for example: hittest, fill, etc...
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/10 1:22:55
5楼: @emailx45 Thank you. I added a rectangle, but I don’t know why it didn’t respond when I clicked it. Please modify the attached program and tell me why,Thank you.
此帖子包含附件:
PNG 图像
大小:263.0K
----------------------------------------------
-
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/10 1:23:29
6楼: This is the program
此帖子包含附件:mp654kk_2023101012327.rar 大小:5.36M
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/10 5:47:03
7楼: all control with HITTEST = TRUE get mouse click.... then you should not set to "true", else you can not click on "edit area"... you see?

put the rectangle in "behind" any other object ( in "background" style object ), and HitTest=FALSE...

dont change any objects default, dont change the default names objects... just add "your rectangle" into "background" style object
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/10 19:11:28
8楼: @emailx45 Thank you, that's it. What's the difference between Edit1.StyleName and Edit1.StyleLookup?
----------------------------------------------
-
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/10 20:32:59
9楼: @emailx45 I overlooked a question. Why is the button on the right side of this combobox missing?
此帖子包含附件:
PNG 图像
大小:253.3K
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/10 23:34:26
10楼: StyleName = object name for styles ( not name of object itself... for this, use "Name" property , you see? )

StyleLookup = +/- used to know where is stored all characteristics that you need use for a object... or be, you create a "style definition" and can use itin many others objects... or simply, a link for your style definition.

Obj1 = have your style definitions...
Obj1.StyleName =  xxxx

Obj2 = desire use a specific style
Obj2.StyleLookup = Obj1.StyleName
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/10 23:40:35
11楼: Important:
-- a class can be (normally it is) composed by more than others class

that way, a visual (or not) component is composed by others class/components. that way, exists many styles evolved and many things to observe.

basically, try verify how a component is structured... try use a custom edit style for try understand it.

unfortunatelly, i not master in class builder.

A Combobox, has a Listbox items, a Edit, a Scroll, etc....
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/11 15:32:46
12楼: @emailx45 Thank you very much. I guess I need to add a rectangle to that button.
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行139.9841毫秒 RSS