关于我写的对话框,我有两个问题。
1.下拉框不够宽,无法显示所有文本。我该如何解决这个问题?
2.目前,要在列表框中选择第二行,必须按住shift键。我如何更改它,使选择保持选中状态而不按下控制键?
扰乱dcl的命令
- (defun c:bprint ( / )
- (setq retlist1 nil)
- ;;; lm:directorydialog
- ;;; Author: Lee Mac, Copyright © 2013 - www.lee-mac.com ;;;
- (setq thedirectory (lm:directorydialog "Select folder: " nil 0))
- (if (/= thedirectory nil)
- (setq List1 (vl-directory-files thedirectory "*.dwg"))
- end
- )
- (setq List2 (list ""))
- (batch thedirectory List1 List2)
- (if (/= retlist1 nil)
- (progn
- (if (/= (findfile "BPlotData.txt") nil)
- (setq filedata
- (readfile
- (findfile "BPlotData.txt")
- )
- files (cdr filedata)
- batchplotfiles (list )
- )
- )
- (foreach file files
- (setq batchplotfiles
- (append batchplotfiles
- (list
- (strcat "open "" thedirectory "\" file "" (mybatchprint) ZOOM E close Y")
- )
- )
- )
- )
- (makefile
- (strcat
- (strcat "C:\\Users\" (getvar "loginname") "\\Documents")
- "\"
- "BatchPlot.scr"
- )
- batchplotfiles
- )
- (command "_.script"
- (strcat "C:\\Users\" (getvar "loginname") "\\Documents\\BatchPlot.scr")
- )
- )
- )
- )
运行dcl的函数
|