1.假设你对话框文件中有一个列表框ListBox1,则可以用以下程序把数据文件的内容显示列表框中: - (setq txt_list(Get_Txt(findfile "mydat.dat")))
- (start_list "ListBox1")
- (mapcar 'add_list txt_list)
- (end_list)
2.对于列表框,返回的是索引号,而不是列表框中的内容,所以在取得索引号后,就可以使用Get_Txt_Num函数来返回指定索引号的文本内容。
3.通过返回的文本内容就可以起先绘图了。 |