資源描述:
《直齒花鍵C語言程序源代碼.doc》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
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