摘要
基于AutoCAD平台用户应用程序中的对话框设计主要包括对话框的界面设计和对话框的驱动程序设计。对话框的界面设计重点在于应满足用户应用程序中所需数据的直观查找,相应参数的方便输入和所绘图形的选择。对话框驱动程序的设计关键是处理用户操作即对话框回调。以机器中标准件圆锥滚子轴承二维参数化绘图用户应用程序中的对话框界面设计和对话框驱动程序设计为例,给出了定义对话框界面的DCL文件,详细介绍了对话框驱动程序中关于用户由弹出式列表构件中选择轴承直径系列时加入表项的回调程序代码,以及当用户由列表框构件查出并选中所需数据,编辑框构件中自动显示相应参数值的回调程序代码。
Design of the dialog box in user application program based on AutoCAD contains mainly interface and driver design of dialog box. Interface design of dialog box focus on meeting the need of searching straight requisite data in user application, inputting conveniently corresponding parameters and selecting pictures. The key of design of dialog driver is to process user operation, i.e. callback of dialog box. Taking example for interface and driver design of dialog box of two-dimension parametric design of standard parts such as conic roller bearings in the field of machine, a DCL file to define the interface was given. With a user choosing a bearing diameter series in popup list tile, a callback program how to add list elements to list tile was described in details. After the user searched and chose the needed data in list tile, a callback program to display automatically corresponding parameters in edit tile is expounded.
出处
《辽宁石油化工大学学报》
CAS
2005年第1期71-74,共4页
Journal of Liaoning Petrochemical University
关键词
对话框
对话框界面设计
对话框驱动程序设计
Dialog box
Interface design of dialog box
Drivers design of dialog box