乐筑天下

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

[编程交流] DCL Image slide by list box &

[复制链接]

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 23:08:49 | 显示全部楼层
I must have changed the code at some stage its a few years old it was written for a specific purpose but I dont use it now. The file_ref is the name of a txt file which contains the slide names you could just create a list (setq Pts_lst '(dwg1 dwg2 dwg3 dwg4)) and remove the un-necessary code to read a file. It was done that way so it could be given to someone else who put their own slide names in the text file and not have to fiddle with code.
回复

使用道具 举报

5

主题

23

帖子

18

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-5 23:13:51 | 显示全部楼层
BIGAL
ahh, i see.
i just got back to work after 3-day holiday. anyway, thank you so much, i'll be needing this in time, for sure.
回复

使用道具 举报

15

主题

243

帖子

228

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
75
发表于 2022-7-5 23:16:33 | 显示全部楼层
Hey BIGAL, are you still around here? Was hoping for some help with this DCL
回复

使用道具 举报

17

主题

59

帖子

44

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
83
发表于 2022-7-5 23:22:04 | 显示全部楼层
but how do you save variable and insert oject in drawing, for example, a block with attrib
回复

使用道具 举报

17

主题

59

帖子

44

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
83
发表于 2022-7-5 23:26:42 | 显示全部楼层
I want to change the image when it is active when going through another edit_box edit_box to show my other imagime as possible that ,I do not need edit_list
DCL
  1. test_dcl : dialog { label = "Lee Mac Modified"; spacer; :row {:boxed_column{label="Setari Corpuri Baza Bucatarie";: edit_box { //define edit box                key = "eb1" ;                                //give it a name                allow_accept = false;                 is_tab_stop = false;                 is_enabled  = true;                label = "&Gaura din fata fund/mm" ;                //give it a label                edit_width = 4 ;                        //4 characters only       }//edit_box                        : edit_box { //define edit box                key = "eb2" ;                                //give it a name                                label = "&Gaura din spate fund/mm" ;                //give it a label                edit_width = 4 ;                        //4 characters only       }// edit_box                : edit_box { //define edit box                key = "eb3" ;                                //give it a name                label = "&Gaura din spate lateral/mm" ;                //give it a label                edit_width = 4 ;                        //4 characters only       }// edit_box                                : edit_box { //define edit box                key = "eb4" ;                                //give it a name                label = "&Gaura din fata lateral/mm" ;                //give it a label                edit_width = 4 ;                        //4 characters only       }// edit_box                                                        }// end boxed_column: boxed_column { label = "Image Slide";     : image { key = "sld";         height = 15;         fixed_height = true;       width = 50;         fixed_width = true;         color = 0;         aspect_ratio = 1;       is_enabled = false;         is_tab_stop = false;             }   }} ok_cancel;}
 
lisp

[code](defun c:test( / slide path dch lst ) (setq path "c:\\acad\\") (defun slide ( key file )   (if (setq file (findfile file))     (progn       (start_image key)       (fill_image 0 0 (dimx_tile key) (dimy_tile key) 0)       (slide_image 1 1 (- (dimx_tile key) 2) (- (dimy_tile key) 2) file)       (end_image)     )   ) ) (cond   ( (
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 06:05 , Processed in 0.442439 second(s), 60 queries .

© 2020-2025 乐筑天下

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