欢迎来到天天文库
浏览记录
ID:49647077
大小:85.00 KB
页数:17页
时间:2020-03-02
《直齿花键C语言程序源代码.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、需要使用UGUISTYLER建立对话框和建立一个花键模板零件下面分别是主要程序代码/*=============================================================================WARNING!!ThisfileisoverwrittenbytheUIStylereachtimetheStylerfileissaved.Filename:spline_dialog_template.cThisfilewasgeneratedbytheNXUserInterfaceStylerCreatedby:HaoV
2、ersion:NX4Date:06-04-11Time:22:26ThistemplatefileisoverwritteneachtimetheUIStylerdialogissaved.Anymodificationstothisfilewillbelost.==============================================================================*//*=======================================================================
3、=======Purpose:ThisTEMPLATEfilecontainsCsourceandstaticstructurestoguideyouintheconstructionofyourNXOpenapplicationdialog.Thegenerationofyourdialogfile(.dlgextension)isthefirststeptowardsdialogconstructionwithinUnigraphics.YoumustnowcreateaUGOpenapplicationthatutilizesthisfile(.dlg).T
4、heinformationinthisfileprovidesyouwiththefollowing:1.Helpontheuseofthefunctions,UF_MB_add_styler_actionsandUF_STYLER_create_dialoginyourNXOpenapplication.ThesefunctionswillloadanddisplayyourUIStylerdialoginUnigraphics.Anexampleofthefunction,UF_MB_add_styler_actionstoassociateyourdialo
5、gtothemenubarisshownbelow(SearchonExample1).AnexampleofainvokingadialogfromacallbackutilizingUF_STYLER_create_dialogisalsoshownbelow(SearchforExample2).AnexampleofauserexitutilizingUF_STYLER_create_dialogisalsoshownbelow(SearchforExample3).2.Thecallbackstructure:---CHANGE_cbs---Thisst
6、ructureisVERYimportantifyouhavecallbacksassociatedwithyourdialog.Itcorrelatesthedialogitemsinyourdialogwiththecallbackfunctionsyoumustsupply.YoushouldnotmodifythisstructuresinceitMUSTmatchuptotheinformationstoredinyourdialogfile(.dlg).Anyattempttodosowillcauseanerrorwhileconstructingy
7、ourdialog.Ifyouwishtomodifytheassociationofyourcallbackstoyourdialog,pleasereloadyourdialogfile(.dlg)intotheUIStylerandregenerateyourfiles.Youdonotneedtobeconcernedaboutthisstructure,simplypassitasanargumenttothefunction,UF_STYLER_create_dialogalongwithyourdialogfile(.dlg).Example1dis
8、plays
此文档下载收益归作者所有