本帖最后由 wkq004 于 2014-6-2 17:55 编辑
我用停靠对话框,想达到双击列表,把Label2改成列表中的字符串,半天都没弄好,用模态对话框可以,但停靠就是不行,不知道咋弄,哪位高手帮个忙
主要是第一次用opendcl在dcl文件的Events选项卡内未打钩。
 - (command "OPENDCL")
- (defun c:TT ()
- (dcl_Project_Load "AA" t)
- (dcl_Form_Show AA_Form1)
- (princ)
- )
- (defun c:AA_Form1_OnInitialize (/)
- (dcl_ListBox_AddList
- AA_Form1_ListBox1
- (LIST "A" "E" "B" "D" "C")
- )
- )
- (defun c:AA_Form1_ListBox1_OnDblClicked (/)
- (alert "aaaaaaaaa")
- (dcl_Control_SetCaption AA_Form1_Label1 "222")
- (dcl_Control_SetCaption
- AA_Form1_Label2
- (setq name (dcl_ListBox_GetItemText
- AA_Form1_ListBox1
- (dcl_ListBox_GetCurSel AA_Form1_ListBox1)
- )
- )
- )
- ;;; (command ".text" pause "" "" name "")
- )
|