乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 7|回复: 7

[编程交流] about dcl edit_box

[复制链接]

22

主题

100

帖子

78

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
112
发表于 2022-7-6 10:27:39 | 显示全部楼层 |阅读模式
hi,all
is there any way to set the font color of edit_box  by property in dcl ?
for codes below:
by default,the font color is black,how can I change it to red?thanks.
  1. toleranc : dialog {          label = "toleranceediton";          : boxed_column {            label = "tolerance";              : edit_box {                label = "uppertolerance";                key   = "dimtp";                edit_width = 8;              }              : edit_box {                label = "downtolerance";                key   = "dimtm";                edit_width = 8;              }              spacer_1;          }          : button {            label = "restore";            key   = "comeback";          }   spacer;   ok_cancel;}
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:40:42 | 显示全部楼层
I don't think you can with standard DCL, take a look here and perhaps try OpenDCL:

http://www.cadtutor.net/forum/showthread.php?52498-Mode-less-dcl-dialog&p=355722&viewfull=1#post355722
回复

使用道具 举报

22

主题

100

帖子

78

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
112
发表于 2022-7-6 10:51:25 | 显示全部楼层
thank you for your reply,I will try it.
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
310
发表于 2022-7-6 10:55:18 | 显示全部楼层
I believe Lee is correct.
But for giggles you may want to try http://web2.airmail.net/terrycad/Tutorials/MyDialogs.htm#MyBoldText
 
and use
color = //whatever #
under the
: text {
I'm away from cad so I cannot test this myself
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:06:20 | 显示全部楼层
 
That will be the background - but it is interesting that you can do that with image_tiles.
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
310
发表于 2022-7-6 11:15:39 | 显示全部楼层
I thought it probably wouldn't work but I figure its worth the try. There's some really cool things on his site.
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
310
发表于 2022-7-6 11:27:24 | 显示全部楼层
Lee,
I wanted to ask and I'll probably will start a new thread so this doesn't get confusing. How do you figure out the vector_image #'s? I used terry's program but it seems it doesn't get all of the objects I select.
 
This is quite the dcl morning!
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:34:51 | 显示全部楼层
The vector images numbers are the coordinates of the vector start/end x/y values, relative to the dialog box tile coordinate system.
 
  1. ([color=blue][b]vector_image[/b][/color] [color=green][b]x1 [color=red]y1[/color] x2 [color=red]y2[/color] [color=purple]colour[/color][/b][/color])
Hence all objects must be approximated by a series of vectors and the coordinates of the endpoints of such vectors translated relative the the dialog tile in which the origin is the top left corner.
 
You can also get the dimensions of the tile so that you know the viewing limits of the tile coordinate system using dimx_tile and dimy_tile. With this information you can scale the coordinates of your objects to fit within the tile.
 
There are quite a few program out there that will calculate the vectors, Terry's being one of them. I've also written one that gives me a little extra control over the alignment of the image in the tile.
 
Lee
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-6 21:08 , Processed in 0.717227 second(s), 68 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表