HyperWorks桌面自定义简介.docx

上传人:p** 文档编号:1055925 上传时间:2024-06-29 格式:DOCX 页数:20 大小:63.87KB
下载 相关 举报
HyperWorks桌面自定义简介.docx_第1页
第1页 / 共20页
HyperWorks桌面自定义简介.docx_第2页
第2页 / 共20页
HyperWorks桌面自定义简介.docx_第3页
第3页 / 共20页
HyperWorks桌面自定义简介.docx_第4页
第4页 / 共20页
HyperWorks桌面自定义简介.docx_第5页
第5页 / 共20页
HyperWorks桌面自定义简介.docx_第6页
第6页 / 共20页
HyperWorks桌面自定义简介.docx_第7页
第7页 / 共20页
HyperWorks桌面自定义简介.docx_第8页
第8页 / 共20页
HyperWorks桌面自定义简介.docx_第9页
第9页 / 共20页
HyperWorks桌面自定义简介.docx_第10页
第10页 / 共20页
亲,该文档总共20页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《HyperWorks桌面自定义简介.docx》由会员分享,可在线阅读,更多相关《HyperWorks桌面自定义简介.docx(20页珍藏版)》请在第壹文秘上搜索。

1、TableofContentsIntroductiontoHyperWorksDesktopCustomizationChaPter1:IntrOdUCtiOntoTC1.7AbOInTC1.7AbOiJtTk8BascTelSVnlaX8TC1.COmrnandOVefVteW8TkBaSiCCOmmandS23ChaPter2:HVPerWOrkSDeSktOPEnVironment29TheHyDerWorkSDeSktoD29TheCommand1.aVer31EXerCiSe2.1ChanQinQIheClientTVDeUSingtheCB1U11andWindowPraCtiCa

2、lEXerCiSeS4243ChaPter3:TheCOmmand1.aYerEXPIOredCommanClCateaOrieS43BaSiCCOmmandS44WOrkIntlWithHandIeS46EXerCiSe3BaSiCCommandSandWorkinqWimHandleS49PraCtiCalExercises54ChaPter4:TheAnirnatiOnClient55AnimauOnWindow55EXerCiSe4.11.OaClinaaModelandReSUltSFiIe59MOdelObieCt61EXerCiSe4.2WorkinQWlththeModelOb

3、ect67PraCtiCalEXerCiSeS71ChaPter5:ReSUltSandQUerV73ADDlYinaReSUltS73EXereiSe5.1ContourinaReSUItSandContOUnnabySeIeCtiOn77Res,s81EXerCiSe5.2QUeryinqCOnK)UredReSiJhSandCreatinga1.iStOfReSUItS84PraCHCalEXerCiSeS88ChaPter6:ThePlOtUnaCIient91ThePIOttinQWindOW91DefininqCurvesfromDataFiles92DefiningClJrVeS

4、fromMathEXPreSSiOnS94AddinqNOteStoaPlOt95IntrodUCUontoTemPIeXStatementS97EXerCiSe6.1CreatinqPIotSandNQteSWimTemDleXinsideIheNQteS98PraCtiCalExercises106ChaDter7:TheMotiOnVieWModelClient109MOdelWindOW109SolUtiOnSForEXerCiSeS113GUIsquickly.Itprovedsopopularthatitnowshipswithalldistributionsof7cl.Tksha

5、resmanyconceptswithotherwindowingtoolkits,butyoudonotneedtoknowmuchaboutgraphicaluserinterfacestogetstartedwithTk.Tkaddsabout35Tclcommandsthatletyoucreateandmanipulatewidgetsinagraphicaluserinterface.AWldgetisawindowinagraphicaluserinterfacethathasaparticularappearanceandbehavior.Thetermswidgetandwi

6、ndowareoftenusedinterchangeably.Widgettypesincludebuttons,scrollbars,menus,andtextwindows.Tkalsohasageneral-purposedrawingWIdgetcalledacanvasthatletsyoucreatelighter-weightitemssuchaslines,boxes,andbitmaps.TclandTkarehighlyportable,runningonessentiallyallflavorsofUnix(1.inux,Solaris.IRIX1AIX.*BSD,th

7、elistgoesonandon),Windows.Macintosh,andmore.SomebasicTkcommandswillbediscussedlater.Foradditionalinformation,pleaserefertothemanual.BasicTclSyntax Firstitemofacommandlineisammandname. Thewordsinthemmandlineareseparatedbyoneormorespaces. Wordscanbegroupedwithdoublequotesorcrlybaces. Commandsaretermin

8、atedwithnewlineorsemi-lon. Awordstartingwithadollarsign($)mustbeavariablename.Thestringwillbereplacedbythevalueolthevariable. WordsenclosedwithinsquarebracketsmustbealegalIclcommand.Thestringswouldbereplacedbytheresultsofevaluatingthecommand.TC1.CommandOverviewInthefollowingmmandoverviewitisrecommen

9、dthatthestudentstrytheexamplesthemselves.1.TextOutputPrintingoutastringusingTclisdoneusingtheputscommand.Asingleunitoftextaftertheputscommandwillbeoutput.Example1.1putsHyperWorksOutput:HyperWorksIfthestringismorethanoneword,thestringmustbeenclosedineitherdoublequotes(b*)orbraces().Manycommands,inclu

10、dingtheputscommand,acceptmultiplearguments.Ifthestringisnotenclosedinquotesorbraces,theindividualwordsareconsideredarguments.Asetofwordsenclosedinquotesorbraceswilltreatedasasingleunit.Thetwooptionsofquotesorbracesbehavedifferentlyandthedifferenceswillbediscussedinthenextsection.OutputAlbanyTheCapit

11、olofNewYorkis:TheCapitolofNewYorkis:AlbanyTheCapltolofNewYorkIs:$ZWhendefiningastring,iftherearemultiplewordsinthestringwehavelearnedthatwecaneitherusedoublequotesorbraces.Thedifferencebetweenthesetwooptionsishowtheytreatvariablesthatareintheirstrings.Example 2.3: puts$ZJ1.ABE1.puts$Z_1.ABE1.OutputT

12、heCapitolofNewYorkis:Albany$Z_1.ABE1.$ZExample2.3showshowusingthedoublebraceactuallydisablesthesubstitutionofvariableswithinthebraces.Notethatbraceshavethiseffectonlywhentheyareusedtorgrouping(i.e.atthebeginningandendofasequenceofwords).Ifastringisalreadygrouped,eitherwrthquotesorbraces,andbracesocc

13、urinthemiddleofthegroupedstring(i.e.foobar),thenthebracesaretreatedasregularcharacterswithnospecialmeaning.Ifthestringisgroupedwithquotes,substitutionswilloccurwithinthequotedstring,evenbetweenthebraces.Example 2.4:setmonth2setday3setyear09setdateSroonth:$day:$yearputs$dateOutput:2:3:09Herevariables

14、ubstitutionisusedinseveralplaces:Thevaluesofthevariablesmonth,day,andyeararesubstitutedinthesetcommandthatassignsthevalueofthedate*variable,andthevalueofthedatevariableisthensubstitutedinthelinethatdisplaystheoutput.Example 2.5:stfooputshi,eval$fooOutput:hiInthisexample,thevariablefooholdsanother(sm

15、all)Tclscriptthatsimplyprintsthewordhi.Thevalueofthevariablefoo,issubstitutedintoanevalcommand.Theevalmmandtakesoneormoreargumentsv/hichtogethercompriseaTclscriptandpassesittotheTclinterpreter.3. ExpressionsExamples3.1and3.2illustratetheuseofrelationalexpressionswiththeeprcommand.Thefirstexpressionevaluatesto0(false)since0doesnotequal1,whereasthesecondexpressionevaluatesto1(true),since,obviously.1doesequal1Therelationaloperator三三isusedtodothecomparison.Example 1.3:epr4+5Output

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > IT计算机 > 计算机应用/办公自动化

copyright@ 2008-2023 1wenmi网站版权所有

经营许可证编号:宁ICP备2022001189号-1

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第壹文秘网,我们立即给予删除!