| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> c/c++ >> chuang shi ji de C++ Builder-- ru men li zi

chuang shi ji de C++ Builder-- ru men li zi

2008-06-01 02:07:44 编辑來源:互联网 评论
 
 
 
本文为【创世纪的C++ Builder--入门例子】的拼音翻译版
  kua chu 「 shi ji mo 」 de cheng shi ren
  zi cong shi jiu shi ji mo , liang wei xing ming yi yin qu de ba li bian ju ren fa ming le 「 shi ji wei 」 zhe ge ci , yi hou mei yi bai nian , ren men jiu yao zai tui fei 、 jiao lv 、 bu an 、 zao qie de qing su li zou yi zhao lun hui 。 er zai zhe ge shi ji , ye kai shi you ren ti chu le zhong zhong de shi ji mo kou hao , cong 「 shi ji mo ruan ti ge ming 」、「 shi ji mo wen hua ge ming 」 dao 「 shi ji mo XX ge ming 」, si hu zhi yao guan shang 「 shi ji mo 」 jiu zu yi dai biao zhe ge shi dai de suo you qing su 。
  dui yu cheng shi ren lai shuo ,「 shi ji mo ruan ti ge ming 」 zhi de shi wu jian dao xiang cheng shi she ji fang fa suo dai lai de si wei mo shi de zhuan bian (Paradigm Shift), ta gai bian le cheng shi xie zuo de si wei mo shi , kuo da le cheng shi ren de shi ye , you ren ba ta he gong ye ge ming xiang bi ni , ren wei ta jiang hui cheng wei ruan ti ye jie de gong ye ge ming ; ran er , wo men dou zhi dao , ruan ti ye de gong ye ge ming huan wei dao lai 。 wo men dou zai deng dai , ye dou zai qi dai zhe li ming de shu guang 。
  cheng shi ren de 「 chuang shi ji 」 qing jie
  「 chuang shi ji 」 shi cheng shi ren de tu teng , ta ke yi dai biao cheng shi ren ge xing zhong yong yu chuang zao de te zhi , ta ye zeng jing shi xu duo cheng shi ren zui ai de RPG( jiao se ban yan you xi )。 ji hu suo you de cheng shi ren dou xi ai bing le yu xiang shou chuang zao wu jian de cheng jiu gan , er zhe zhong re zhong chuang zao de te zhi , zao jiu le xu duo you xiu de cheng shi 。
  zai mei ge dian nao shi ji de jiao ti zhong , dou zeng jing chan sheng yi xie chuang shi ji de ren wu huo chan pin si , qi zhong Borland jiu shi qi zhong de yi yuan 。
  Borland de ba wang chuan shuo
  zi cong shi wu nian qian ,Anders Hejlsber xie xia le di yi ge Turbo Pascal bian yi qi yi lai ,Borland jiu kao zhe Turbo Pascal wen ding 、 you ya 、 yu kuai su de bian yi gong neng , jia shang dang shi de Pascal shi zi xun ke xi de 「 guan hua 」, wei qin ding de jiao xue yu yan , shi de Borland cheng wei xiong ba yi fang de ba zhu 。
  sui zhe Turbo Pascal de cheng gong ,Borland cheng shi er qi , tui chu le Turbo C ji Turbo C++, cheng wei di er ge zai PC shang tui chu shang ye hua C++ de bian yi qi chang shang ( di yi ge shi Zortech C++, you C++ zhi fu Bjarne Stroustrup qin zi she ji , xian zai yi bei Symantec shou gou )。 zhe ji ge cheng gong de chan pin , jiang Borland de sheng shi dai shang gao feng , yu shi wei le geng jia da xiang Borland de ming hao , jiang qi xia de suo you chan pin , gai guan yi Borland zhi ming , yu shi Borland de hou xu chan pin yi Borland wei ming , ru Borland C++,Borland Pascal cuan . deng deng 。
  zai Windows shi ji kai chuang zhi chu ,Borland C++ 3.1 shi dang chu wei yi ke yi zai Windows kai fa Windows ruan ti de cheng shi fa zhan gong ju , dang shi Borland huan yi ci wei hao zhao , da li pin ji dang shi de MSC (Microsoft C) zhi neng zai Dos xia zhuan xie Windows cheng shi 。 ran er sui zhe Visual C++ de tui chu , qing shi ni zhuan , zai shi jiao fa zhan gong ju de you sheng lie bai xia ,Borland man man di sang shi ta ji you de ling tu 。
  zai zhe liang qiang dui jue de shi dai ,Borland de kai guo gong chen Turbo Pascal shi zhong bei yi wang zai li shi de yi ge jiao luo , ran er ta de kai fa xiao zu ye bu shi sheng you de deng , zai jing guo le ji nian de wo xin chang dan zhi hou ,Anders Hejlsber zai du dai ling xiao zu ( zhe ge xiao zu si hu ye bu zen me xiao cuan .), shi po tian jing di tui chu le xin yi dai de cheng shi fa zhan gong ju 'Delphi , zhe ge yi kuai su cheng shi fa zhan gong ju (RAD'Rapid application Development) wei hao zhao de chan pin , yi tui chu zhi hou li ji cheng wei mei guang deng de jiao dian , cheng wei zheng jiu dang shi Borland de jiu huo dui 。
  zai Delphi tui chu zhi hou , dian ding le Borland zai RAD ling yu de bu xiu di wei , er Delphi ye cheng wei zai PC shang wei yi ke yi he gong zuo zhan ji de Nextstep IB (Interface Builder ) deng liang qi guan de chong liang ji fa zhan gong ju , bu guo zhe shi kai shi you ren zai si kao , shen me shi hou Borland hui tui chu C++ de kuai su cheng shi fa zhan gong ju 。
  zai qu nian de Comdex zhan ,Borland kai shi zeng yu yi tao dai hao wei Ebony de cheng shi fa zhan gong ju , zai ji jing shen yue zhi hou , cai fa xian ta jiu shi chuan shuo zhong de Delphi for C++, ye jiu shi xian zai zheng shi ming cheng wei Borland C++ Builder, jian cheng wei BCB de RAD。
  Borland zai ci de kai qi le yi ge RAD de zhan chang , he dang chu de Turbo Pascal yi ban , ta de hou ji zhe Delphi, shi zhe chang zhan zheng de xian feng , bing qie yi wei Borland ying de le duo ci de qian shao zhan , ran hou sui zhe C++ Builder de tui chu ,Delphi zhe ge da le sheng zhang de xian feng shi fou hui ru ta de qian shen Turbo Pascal ban mei ru li shi zhong ne ?
  duan qi kan lai shi bu hui de , yin wei BCB xian zai huan suan shi he Delphi de nai shui chang da de , ta suo shi yong de ruan ti yuan jian dou shi yi Delphi suo zhuan xie de VCL yuan jian (Visual Compoment Library), zhi yu yi hou Borland hui bu hui yi BCB quan pan gai xie VCL ne ? zhe shi you ke neng de , na chang qi kan lai ,BCB shi fou hui qu dai Delhi ne ? zhe si hu zhi neng you shi jian lai gao su wo men le 。 bu guo Delphi zhi fu Anders Hejlsber yi jing zai qu nian you Borland li zhi le , zhe si hu tou lu le yi xie xun xi 。
  shuo dao zhe er , wo xiang nin yi jing po bu ji dai di xiang yao yi du C++ Builder de lu shan zhen mian mu le , mei cuo , jin tian zhe chang RAD de zhan zheng yi jing kai qi le , sheng bai de de guan dian yi bu shi wo men suo guan xin de , wo men suo guan xin de shi yi ge cheng shi ren de qian shao zhan yi jing kai da le , dang bie ren dou zai shi yong C++ Builder zhe zhong chong wu qi shi , wo men gai ru he yin ying ?
  ji ran wu fa fan kang ta , na jiu jia ru ta ! rang wo men shen yu C++ Builder de chuang shi ji ba !
  li bie Hello World de nian dai
  xu duo dian nao yu yan shu ji ru men shu nei de di yi ge cheng shi dou yi yi ge yin chu Hello World zi chuan de xiao cheng shi zuo wei di yi ge ru men cheng shi , er zai Windows cheng shi she ji ling yu xiang you tian wang zhi ming de Charles Petzold zai ta sheng jing ji de zhe zuo de PRogramming Windows zhong ye shi yi yi ge Hello Window zuo wei gai shu de kai chang bai , zai mai ru C++ Builder de shi ji zhi hou , wo jiu bu zai shi yong zhe zhong chun gu fa xiang zao de fang fa lai xie zuo le , wei le chong fen rang nin gan shou ta de zhi ming xi yin li , xian zai wo suo zhan shi de gei nin de di yi ge cheng shi shi duo mei ti bo fang cheng shi , er qie wo hui gao su nin ru he zai shi fen zhong zhi nei xie chu yi ge duo mei ti bo fang cheng shi ,「 shi fen zhong ! you mei you gao cuo ?」, mei cuo , jiu shi shi fen zhong , yong C++ Builder ni jue dui ke yi zai shi fen zhong nei xie chu yi ge gou shui zhun de mei ti bo fang cheng shi ' ji shi ni shi yi ge cai de bu neng zai cai de chu xue zhe 。
  ta de zhi xing hua mian ru xia :
创世纪的C++ Builder--入门例子

  
  
  hao xi kai luo la !
  zai jin ru C++ Builder shi ni hui kan dao yi xia de hua mian
创世纪的C++ Builder--入门例子

  shou xian wo jian dan di wei ni jie shao C++ Builder fa zhan huan jing , zai ci wo zhi dui zheng ge fa zhan huan jing zuo yi ge jian dan de liu lan , yi li cheng shi de zhuan xie 。
  C++ Builder fa zhan huan jing zhu yao fen wei yi xia yuan jian :
  (1) biao ge (Form) shi chuang
  (2) yuan jian he (Compoment palette)
  (3) wu jian jian shi qi (Object Inspector)
  (4) cheng shi bian ji qi (Code Editor)
  (5) jia su bang (SpeedBar)
  biao ge shi chuang (Form)
创世纪的C++ Builder--入门例子

  biao ge shi C++ cheng shi she ji de jiao dian , wo men ke yi jiang biao ge shi wei yi zhang hua bu , zai cheng shi she ji shi , wo men zhu yao zuo de gong zuo zhi shi jiang cheng shi yuan jian fang zhi zai biao ge shang er yi 。 yin ci biao ge qi shi ke shi wei yi ge bao han qi ta yuan jian de ruan ti yuan jian 。
  yuan jian he (Compoment Palette)
创世纪的C++ Builder--入门例子

  ruan ti yuan jian shi ni yong yi jia gou C++ Builder cheng shi de ji ben yuan su 。 zai C++ Builder zhong ruan ti yuan jian yi qi yuan jian te xing fen men bie lei di fang zhi zai huo ye shi de yuan jian he zhong , zai C++ Builder zhong ti gong le chao guo le bai zhong yi shang de ji ben yuan jian , cheng shi she ji shi , zhi yao jiang yuan jian he nei de ruan ti yuan jian tuo fang zhi biao ge zhong ji ke 。
  wu jian jian shi qi (Object Inspector)
创世纪的C++ Builder--入门例子

  wu jian jian shi qi shi yong yi gai bian wu jian de nei rong , gai bian gai wu jian de xing wei mo shi yi fu he ni de xu yao 。 wu jian de nei rong bao han le shu xing (Property) ji qi shi jian chu li cheng shi (Event Handler)。 ni ke yi shi xu yao gai bian zhi ding wu jian de zhuang tai ji xing wei mo shi 。
  cheng shi bian ji qi (Code Editor)
创世纪的C++ Builder--入门例子

  C++ Builder de cheng shi bian ji qi shi yi ge quan gong neng de bian ji qi , ta rang ni ke yi cun qu ji bian ji suo you zhuan an nei de cheng shi 。
  jia su bang (SpeedBar)
创世纪的C++ Builder--入门例子

  jia su bang (SpeedBar), gu ming si yi , ta shi yong lai jia kuai cheng shi de cao zuo 。C++ Builder jiang xu duo zai gong neng biao zhong chang yong de gong neng , zai jia su bang zhong yi jie jing de fang shi ti gong ni shi yong 。
  ni de di yi ge C++ Builder cheng shi
  wo men yi jing jian dan di jie shao le C++ Builder cheng shi fa zhan huan jing , xian zai wo men yao kai shi zhuan xie wo men de di yi ge cheng shi ' mei ti bo fang cheng shi 。
  she ji biao ge
  shou xian ni yao xian she ji ni suo yao shi yong de biao ge chang xiang 。 she ji biao ge fei chang jian dan , qi shi zhi shi jiang ruan ti yuan jian fang zai shi chuang zhong er yi 。 yi xia wo yi ji ge bu zhou shi fan biao ge de she ji :
  (1) kai qi xin biao ge
  (2) jiang ruan ti yuan jian zhi ru biao ge zhong
  (3) she ding ge ge ruan ti yuan jian de shu xing
  (4) zhi xing cheng shi
  wan cheng le yi shang de cheng xu hou , da di yi ge cheng shi ye cha bu duo she ji wan le 。 zhe ye shi C++ Builder de mi ren zhi chu 。
  kai qi xin biao ge
  zai jin ru C++ Builder hou , ta hui zi dong wei ni kai qi yi ge xin de biao ge 。 ci shi biao ge kai qi de gong zuo jiu suan wan cheng le , ruo shi yao jia ru qi ta xin de biao ge , zhi yao zhi xing [File/New Form] ji ke 。
  jiang ruan ti yuan jian zhi ru biao ge zhong
  zai kai qi xin biao ge hou , ni ke yi zai yuan jian he zhong xuan qu yuan jian , zhi ru biao ge zhong , zai ci yao fei fan shuo ming de shi , zai C++ Builder de she ji shi qi (Design Time) he zhi xing shi qi (run time), da bu fen yuan jian de xing wei mo shi ji hu shi xiang tong , suo yi zai she ji shi ni jiu ke yi kan dao cheng shi zhi xing de jie guo 。
  zai wo men de zhe ge cheng shi zhong , chu le biao ge wai , you yi ge yuan jian bao han le qi ta de yuan jian , na jiu shi huo ye shi biao ge yuan jian (TabbedNoteBook), zhe ge yuan jian he biao ge lei si , bi xu zui zao fang ru biao ge zhong yi rong na qi ta yuan jian 。
  zai wo men de di yi ge cheng shi zhong zhi ru ruan ti yuan jian hou de jie guo ru xia :
创世纪的C++ Builder--入门例子

  ni ke yi kan dao , chu le yin wei mei you zhi xing , suo yi mei you xian shi dong hua dang zhi wai , ta he zhi xing de jie guo ji hu yi mo yi yang 。
  shou xian wo men lai kan kan zhe ge cheng shi yong dao le na xie yuan jian 。
创世纪的C++ Builder--入门例子
TTabbedNoteBook huo ye shi biao ge yuan jian 。 wei yu yuan jian he de 「Win3.1」 ye , yong yi zuo chu 「 dong hua ji yin xiao ji | yin le CD liang ge biao ge 。
创世纪的C++ Builder--入门例子
Tlabel biao ti yuan jian 。 wei yu yuan jian he de 「Standard」 ye , yong yi xian shi " mei ti bo fang cheng shi " zi yang 。
创世纪的C++ Builder--入门例子
TPanel mian ban yuan jian 。 wei yu yuan jian he de 「Standard」 ye , yong yi xian shi dong hua tu xing dang 。
创世纪的C++ Builder--入门例子
TMediaPlayer mei ti bo fang yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi bo fang duo mei ti 。
创世纪的C++ Builder--入门例子
TDriveListBox ci die ji lie biao yuan zuo 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi ci die ji ming 。
创世纪的C++ Builder--入门例子
TFilterComboBox dang ming guo lv qi yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi guo lv dang ming 。
创世纪的C++ Builder--入门例子
TDirectoryListBox mu lu lie biao yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi mu lu 。
创世纪的C++ Builder--入门例子
TFileListBox dang an lie biao yuan zuo 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi dang an 。
  
  
  zai shi yong zhe xie yuan jian shi , qing xian zhi yuan jian he zhong xuan chu yu shi yong de yuan jian , ran hou jiang qi tuo fang zhi biao ge zhong shi dang de wei zhi , zai gai bian yuan jian de da xiao , ru ci ni jiu ke yi de dao yi ge biao ge de chu xing le 。
  she ding ge ge ruan ti yuan jian de shu xing
  jiang ruan ti yuan jian zhi ru biao ge zhong zhi hou , zai lai wo men jiu yao kai shi she ding yuan jian shu xing le 。 wei le yao rang zhe xie yuan jian hu xiang he zuo , wo men bi xu she ding ta men zhi jian de guan xi , zai she ding zhi qian wo men xian zai xi xiang xiang ta men zhi jian de dong zuo mo shi :
  shou xian si kao ci die ji ji dang an yuan jian de guan xi :
  (1) gai bian ci die ji hou , mu lu bi xu gen zhe gai bian 。
  (2) gai bian mu lu hou , dang an lie biao bi xu gen zhe gai bian 。
  (3) gai bian dang ming guo lv qi hou , dang an lie biao bi xu gen zhe gai bian 。
  zai le jie ta men de guan xi hou , wo men jiu ke yi kai shi dong shou lai she ding ta men de shu xing le , she ding shu xing qi shi fei chang jian dan , zhi yao zai biao ge shang xuan qu gai yuan jian shi , wu jian jian shi qi jiu hui xian shi gai wu jian suo you de shu xing , yi ci die ji yuan jian wei li , dang wo men xuan qu dao gai yuan jian shi , wu jian jian shi qi jiu hui qie huan dao ru xia tu suo shi de zhuang tai :
创世纪的C++ Builder--入门例子

  ci shi ni ke yi kan dao zai wu jian jian shi qi xian shi le ci die ji lie biao yuan jian de shu xing , qi zhong wo men gan ai hao de shi 「DirList」 yi xiang , ni ke yi xuan qu gai lan wei , ci shi ni hui fa xian ta hui chu xian yi ge lie biao , zhe ge lie biao hui jiang mu qian biao ge zhong suo you de mu lu lie biao yuan jian xian shi chu lai , yin wei wo men suo she ji de biao ge zhong zhi you yi ge mu lu lie biao yuan jian , suo yi ni zhi yao xuan ze gai lie biao zhong wei yi de yi ge ji ke 。
创世纪的C++ Builder--入门例子

  yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li ci die ji lie biao yuan jian he mu lu lie biao yuan jian zhi jian de guan xi , dang ci die ji gai bian shi , bi xu tong zhi mu lu lie biao yuan jian , shi qi gen zhe gai bian 。
  tong li wo men xuan qu mu lu lie biao yuan jian , bing she ding qi shu xing , zai mu lu lie biao yuan jian zhong wo men gan ai hao de shi 「FileList」 lan wei , ci shi ni ke yi xuan qu gai lan wei , bing jiang ta she ding wei biao ge zhong de dang an lie biao yuan jian 。
创世纪的C++ Builder--入门例子

  yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li mu lu lie biao yuan jian he dang an lie biao yuan jian zhi jian de guan xi , dang mu lu gai bian shi , bi xu tong zhi dang an lie biao yuan jian , shi qi gen zhe gai bian zhi mu qian mu lu de lie biao 。
  jie zhe wo men xuan qu dang ming guo lv qi yuan jian , bing she ding qi shu xing , zai dang ming guo lv qi yuan jian zhong wo men gan ai hao de shi 「FileList」 lan wei , ci shi ni ke yi xuan qu gai lan wei , bing jiang ta she ding wei biao ge zhong de dang an lie biao yuan jian 。
创世纪的C++ Builder--入门例子

  yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li dang ming guo lv qi yuan jian he dang an lie biao yuan jian zhi jian de guan xi , dang dang ming guo lv qi gai bian shi , bi xu tong zhi dang an lie biao yuan jian , shi qi gen zhe gai bian zhi mu qian de dang an lie biao 。
  zui hou , wo men yao she ding dang ming guo lv qi yuan jian de guo lv , zai zhe ge cheng shi zhong wo xi wang ke yi bo fang AVI dong hua dang ji WAV yin xiao dang , suo yi bi xu shi dang di she ding dang ming guo lv qi yuan jian ,
  tong yang di , wo men shou xian xuan qu dang ming guo lv qi yuan jian 。
创世纪的C++ Builder--入门例子

  zai zhe ge yuan jian zhong wo men suo gan ai hao de shi qi zhong de 「Filter」 shu xing , yin ci wo men zai gai xiang mu shang dian er xia , ci shi wo men hui kan dao ru xia de hua mian :
创世纪的C++ Builder--入门例子

  ru tu suo shi , wo men jiang AVI dong hua dang ji WAV yin xiao dang de guo lv zi yuan tian ru ji ke 。 zai cheng shi zhi xing shi , la xia dang ming guo lv qi shi suo xian shi de ming cheng , jiu shi ni suo tian ru de guo lv qi , ta hui fa hui ba guan de jiao se , shi de zhi you fu he tiao jian de dang ming xian shi zai dang an lie biao zhong 。
  wan cheng le yi shang dong zuo zhi hou , ni jiu yi jing jiang ci die ji ji dang an lie biao yuan jian she ding wan cheng le , ci shi ni ke yi xian xing zhi xing cheng shi , kan kan qi dong zuo shi fou zheng que 。 zhi xing cheng shi de fang fa shi zai xuan qu xuan dan shang de 「Run/Run」, huo shi zhi jie an 「F9」 ji ke 。
  ru he ? shen qi ba ! yong C++ Builder xie cheng shi jiu shi zhe me jian dan 。
  zai lai wo men si kao duo mei ti bo fang cheng shi de bu fen , wo men xi wang ta de dong zuo fang shi ru xia :
  (1) yi TPanel lai xian shi dong hua hua mian 。
  (2) yi duo mei ti bo fang yuan jian lai bo fang mu qian dang an lie biao zhong suo xuan qu de dang an 。
  (3) zai dang an lie biao yuan jian yi shuang ji (Double-Click) lai bo fang gai dang an 。
  shou xian wo men xian lai kan kan duo mei ti bo fang yuan jian de nei rong :
创世纪的C++ Builder--入门例子

  zai duo mei ti bo fang cheng shi zhong wo men gan ai hao de shi qi zhong de 「Display」 xiang mu 。 yin ci wo men xuan qu 「Display」 xiang mu , ci shi ni hui kan dao suo you zai biao ge zhong ke gong xian shi de yuan jian :
创世纪的C++ Builder--入门例子

  wo men xi wang jiang dong hua hua mian xian shi zai 「Panel1」 yuan jian zhong , yin ci qing ni xuan ze 「Panel1」 xiang mu 。 wan cheng zhe ge dong zuo zhi hou , mei ti bo fang cheng shi zai bo fang dong hua dang shi hui jiang hua mian xian shi zai 「Panel1」 shang 。
  jie zhe wo men she ding bo fang de dong zuo :
  yao she ding bo fang de dong zuo , ni bi xu xuan qu duo mei ti bo fang yuan jian , bing jiang wu jian jian shi qi qie huan zhi 「 shi jian (Events)」 ye , ran hou zai qi zhong de OnClick shang an liang xia (Double-Click), jie zhe C++ Builder hui wei ni zi dong chan sheng yi duan kong de cheng shi ma de , ran hou jiu qie huan zhi cheng shi bian ji qi zhong 。
创世纪的C++ Builder--入门例子

  
  
  yi xia de hua mian ji shi C++ Builder qie huan de cheng shi bian ji qi hua mian , ci hua mian wo yi jing tian ru le cheng shi ma , ni de cheng shi ying gai shi kong de 。
创世纪的C++ Builder--入门例子

  zai lai wo men kan kan ying gai zai qi zhong tian ru na xie cheng shi ma ne ?
  void __fastcall TForm1::MediaPlayer1Click(TObject *Sender,
  TMPBTnType Button, bool &DoDefault)
  {
   // yi xia wei wo men tian ru de cheng shi ma
   if (Button==btPlay)
   {
   MediaPlayer1->FileName=FileListBox1->FileName;
   MediaPlayer1->Open();
   MediaPlayer1->Play();
   DoDefault=FALSE;
  } else
   DoDefault=TRUE;
  }
  yi shang wo men tian ru de cheng shi ma de zhu yao dong zuo jiu shi :
  (1) jiang mei ti bo fang yuan jian dang ming zhi ding wei dang an lie biao yuan jian mu qian de dang ming 。
  (2) kai qi mei ti bo fang cheng shi 。
  (3) kai shi bo fang 。
  jin xing dao zhe er , ni ke yi zai ci zhi xing cheng shi 。 ran hou xuan qu shi dang de dang an , zai xuan hao le dang an zhi hou , ni jiu ke yi zai duo mei ti bo fang yuan jian zhong xuan ze zhi xing
创世纪的C++ Builder--入门例子
, ruo shi ni suo xuan ze de shi AVI dong hua dang , ni yi jing ke yi kan dao dong hua bo fang zai wo men suo zhi ding de yuan jian 「Panel1」 shang le 。
创世纪的C++ Builder--入门例子

  zui hou , wo men xi wang zai ti gong yi zhong bo fang dang an de fang shi , na jiu shi zai dang an lie biao zhong yi shuang ji (Double-Click) de fang shi lai bo fang zhi ding dang an 。 ci shi wo men ke yi xuan ze dang an lie biao yuan jian , bing jiang wu jian jian shi qi qie huan zhi shi jian ye , zhe shi ni hui kan dao yi xia de hua mian :
创世纪的C++ Builder--入门例子

  tong yang di ni ke yi zai 「OnDblClick」 xiang mu shuang ji , ci shi C++ Builder hui zi dong wei wo men chan sheng cheng shi ma , bing qie zi dong qie huan zhi cheng shi ma bian ji qi zhong :
创世纪的C++ Builder--入门例子

  shang tu ji wei cheng shi ma bian ji hua mian , ci hua mian wo yi jing tian ru le cheng shi ma , ni de ying gai shi kong de , jie zhe ni zai yu bian ji qi zhong tian ru yi xia de cheng shi ma :
  void __fastcall TForm1::FileListBox1DblClick(TObject *Sender)
  {
   MediaPlayer1->FileName=FileListBox1->FileName;
   MediaPlayer1->Open();
   MediaPlayer1->Play();
  }
  yi shang wo men tian ru de cheng shi ma de zhu yao dong zuo jiu shi :
  (1) jiang mei ti bo fang yuan jian dang ming zhi ding wei dang an lie biao yuan jian mu qian de dang ming 。
  (2) kai qi mei ti bo fang cheng shi de zhi ding dang an 。
  (3) kai shi bo fang 。
  zai wan cheng le shang shu de cao zuo zhi hou , ni ke yi zai ci di zhi xing cheng shi , xuan qu yu bo fang de dang an , ran hou yi shuang ji de fang shi lai zhi xing dang an 。
  jin xing dao zhe er , ni yi jing ba wo le C++ Builder cheng shi she ji de jing shen , ye xie chu le yi ge bu cuo de mei ti bo fang cheng shi 。 ni shi bu shi dui C++ Builder de kuai su cheng shi fa zhan huan jing (RAD:Rapid Application Development) yu lai yu you xin xin le ne ?
  jie xia lai ni hui fa xian , dao mu qian wei zhi , wo si hu mei you ba zhe ge fan li cheng shi wan quan jie shuo qing chu , yin wei qian mian de zhi xing hua mian zhong de huo ye shi biao ge yuan jian zhong , huan you ling yi ye shi 「 yin le CD」 de bo fang , ling wai guan yu 「 mei ti bo fang cheng shi 」 zhe ge zi xing de she ding fang shi ye mei you jie shuo 。
  shi de , mei cuo , zhe xie dou shi wo da suan liu gei ni zi xing lian xi de xiang mu , yin wei jiao zhi qian mian suo shu de ji ge cao zuo , ta men dou jian dan duo le , yi xia wo xian jian dan tou lu ji ge chong dian :
  (1) xuan ze 「 huo ye shi biao ge 」 yuan jian , bing gai bian qi 「Pages」 shu xing 。 li yong ta suo ti gong de bian ji qi , bian ji ye shu ji ming cheng 。
  (2) jiang 「ActivePage」 qie huan zhi yin le CD ye , ru qian mian suo shu jia ru yi ge duo mei ti bo fang yuan jian 。
  (3) jiang duo mei ti bo fang yuan jian de 「Device Type」 she ding wei CD Audio.
  (4) zhuan xie bo fang cheng shi ma 。 yin wei bo fang yin le CD bu xu yao kai dang , suo yi bu xu yao zhi ding dang an 。
  (5) she ding ge ge biao de zi xing 。
  wan cheng le yi shang de dong zuo hou , ni ke yi zai du zhi xing cheng shi bing qie huan 「 yin le CD」 zhong , fang ru CD, ran hou jiu ke yi bo fang CD le 。
  ni ke yi shi zhe zi xing qu da zao ni de cheng shi hua mian , yi shang de cheng shi hua mian dou zhi yong le jian dan de biao ti yuan jian ji tu xing yuan jian er yi , ni ke yi chang shi zhe wan wan kan 。
  yi shang jiu shi wo men yong C++ Builder suo zhuan xie de di yi ge cheng shi , ta shi bu shi gei le ni yi ge quan xin de gan shou , yuan lai Window cheng shi she ji ye ke yi shi ru ci zhe ban de qing song 。
  dang ran , zhe zhi shi yi ge kai shi er yi , zai hou xu de dan yuan zhong , wo hui ji xu dai zhe ni zou jin C++ Builder suo jia gou de piao liang xin shi jie , tan suo zhe zhong xin de cheng shi she ji fang fa 。【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
kua chu 「 shi ji mo 」 de cheng shi ren zi cong shi jiu shi ji mo , liang wei xing ming yi yin qu de ba li bian ju ren fa ming le 「 shi ji wei 」 zhe ge ci , yi hou mei yi bai nian , ren men jiu yao zai tui fei 、 jiao lv 、 bu an 、 zao qie de qing su li zou yi zhao lun hui 。 er zai zhe ge shi ji , ye kai shi you ren ti chu le zhong zhong de shi ji mo kou hao , cong 「 shi ji mo ruan ti ge ming 」、「 shi ji mo wen hua ge ming 」 dao 「 shi ji mo XX ge ming 」, si hu zhi yao guan shang 「 shi ji mo 」 jiu zu yi dai biao zhe ge shi dai de suo you qing su 。 dui yu cheng shi ren lai shuo ,「 shi ji mo ruan ti ge ming 」 zhi de shi wu jian dao xiang cheng shi she ji fang fa suo dai lai de si wei mo shi de zhuan bian (Paradigm Shift), ta gai bian le cheng shi xie zuo de si wei mo shi , kuo da le cheng shi ren de shi ye , you ren ba ta he gong ye ge ming xiang bi ni , ren wei ta jiang hui cheng wei ruan ti ye jie de gong ye ge ming ; ran er , wo men dou zhi dao , ruan ti ye de gong ye ge ming huan wei dao lai 。 wo men dou zai deng dai , ye dou zai qi dai zhe li ming de shu guang 。 cheng shi ren de 「 chuang shi ji 」 qing jie 「 chuang shi ji 」 shi cheng shi ren de tu teng , ta ke yi dai biao cheng shi ren ge xing zhong yong yu chuang zao de te zhi , ta ye zeng jing shi xu duo cheng shi ren zui ai de RPG( jiao se ban yan you xi )。 ji hu suo you de cheng shi ren dou xi ai bing le yu xiang shou chuang zao wu jian de cheng jiu gan , er zhe zhong re zhong chuang zao de te zhi , zao jiu le xu duo you xiu de cheng shi 。 zai mei ge dian nao shi ji de jiao ti zhong , dou zeng jing chan sheng yi xie chuang shi ji de ren wu huo chan pin si , qi zhong Borland jiu shi qi zhong de yi yuan 。 Borland de ba wang chuan shuo zi cong shi wu nian qian ,Anders Hejlsber xie xia le di yi ge Turbo Pascal bian yi qi yi lai ,Borland jiu kao zhe Turbo Pascal wen ding 、 you ya 、 yu kuai su de bian yi gong neng , jia shang dang shi de Pascal shi zi xun ke xi de 「 guan hua 」, wei qin ding de jiao xue yu yan , shi de Borland cheng wei xiong ba yi fang de ba zhu 。 sui zhe Turbo Pascal de cheng gong ,Borland cheng shi er qi , tui chu le Turbo C ji Turbo C++, cheng wei di er ge zai PC shang tui chu shang ye hua C++ de bian yi qi chang shang ( di yi ge shi Zortech C++, you C++ zhi fu Bjarne Stroustrup qin zi she ji , xian zai yi bei Symantec shou gou )。 zhe ji ge cheng gong de chan pin , jiang Borland de sheng shi dai shang gao feng , yu shi wei le geng jia da xiang Borland de ming hao , jiang qi xia de suo you chan pin , gai guan yi Borland zhi ming , yu shi Borland de hou xu chan pin yi Borland wei ming , ru Borland C++,Borland Pascal cuan . deng deng 。 zai Windows shi ji kai chuang zhi chu ,Borland C++ 3.1 shi dang chu wei yi ke yi zai Windows kai fa Windows ruan ti de cheng shi fa zhan gong ju , dang shi Borland huan yi ci wei hao zhao , da li pin ji dang shi de MSC (Microsoft C) zhi neng zai Dos xia zhuan xie Windows cheng shi 。 ran er sui zhe Visual C++ de tui chu , qing shi ni zhuan , zai shi jiao fa zhan gong ju de you sheng lie bai xia ,Borland man man di sang shi ta ji you de ling tu 。 zai zhe liang qiang dui jue de shi dai ,Borland de kai guo gong chen Turbo Pascal shi zhong bei yi wang zai li shi de yi ge jiao luo , ran er ta de kai fa xiao zu ye bu shi sheng you de deng , zai jing guo le ji nian de wo xin chang dan zhi hou ,Anders Hejlsber zai du dai ling xiao zu ( zhe ge xiao zu si hu ye bu zen me xiao cuan .), shi po tian jing di tui chu le xin yi dai de cheng shi fa zhan gong ju 'Delphi , zhe ge yi kuai su cheng shi fa zhan gong ju (RAD'Rapid application Development) wei hao zhao de chan pin , yi tui chu zhi hou li ji cheng wei mei guang deng de jiao dian , cheng wei zheng jiu dang shi Borland de jiu huo dui 。 zai Delphi tui chu zhi hou , dian ding le Borland zai RAD ling yu de bu xiu di wei , er Delphi ye cheng wei zai PC shang wei yi ke yi he gong zuo zhan ji de Nextstep IB (Interface Builder ) deng liang qi guan de chong liang ji fa zhan gong ju , bu guo zhe shi kai shi you ren zai si kao , shen me shi hou Borland hui tui chu C++ de kuai su cheng shi fa zhan gong ju 。 zai qu nian de Comdex zhan ,Borland kai shi zeng yu yi tao dai hao wei Ebony de cheng shi fa zhan gong ju , zai ji jing shen yue zhi hou , cai fa xian ta jiu shi chuan shuo zhong de Delphi for C++, ye jiu shi xian zai zheng shi ming cheng wei Borland C++ Builder, jian cheng wei BCB de RAD。 Borland zai ci de kai qi le yi ge RAD de zhan chang , he dang chu de Turbo Pascal yi ban , ta de hou ji zhe Delphi, shi zhe chang zhan zheng de xian feng , bing qie yi wei Borland ying de le duo ci de qian shao zhan , ran hou sui zhe C++ Builder de tui chu ,Delphi zhe ge da le sheng zhang de xian feng shi fou hui ru ta de qian shen Turbo Pascal ban mei ru li shi zhong ne ? duan qi kan lai shi bu hui de , yin wei BCB xian zai huan suan shi he Delphi de nai shui chang da de , ta suo shi yong de ruan ti yuan jian dou shi yi Delphi suo zhuan xie de VCL yuan jian (Visual Compoment Library), zhi yu yi hou Borland hui bu hui yi BCB quan pan gai xie VCL ne ? zhe shi you ke neng de , na chang qi kan lai ,BCB shi fou hui qu dai Delhi ne ? zhe si hu zhi neng you shi jian lai gao su wo men le 。 bu guo Delphi zhi fu Anders Hejlsber yi jing zai qu nian you Borland li zhi le , zhe si hu tou lu le yi xie xun xi 。 shuo dao zhe er , wo xiang nin yi jing po bu ji dai di xiang yao yi du C++ Builder de lu shan zhen mian mu le , mei cuo , jin tian zhe chang RAD de zhan zheng yi jing kai qi le , sheng bai de de guan dian yi bu shi wo men suo guan xin de , wo men suo guan xin de shi yi ge cheng shi ren de qian shao zhan yi jing kai da le , dang bie ren dou zai shi yong C++ Builder zhe zhong chong wu qi shi , wo men gai ru he yin ying ? ji ran wu fa fan kang ta , na jiu jia ru ta ! rang wo men shen yu C++ Builder de chuang shi ji ba ! li bie Hello World de nian dai xu duo dian nao yu yan shu ji ru men shu nei de di yi ge cheng shi dou yi yi ge yin chu Hello World zi chuan de xiao cheng shi zuo wei di yi ge ru men cheng shi , er zai Windows cheng shi she ji ling yu xiang you tian wang zhi ming de Charles Petzold zai ta sheng jing ji de zhe zuo de PRogramming Windows zhong ye shi yi yi ge Hello Window zuo wei gai shu de kai chang bai , zai mai ru C++ Builder de shi ji zhi hou , wo jiu bu zai shi yong zhe zhong chun gu fa xiang zao de fang fa lai xie zuo le , wei le chong fen rang nin gan shou ta de zhi ming xi yin li , xian zai wo suo zhan shi de gei nin de di yi ge cheng shi shi duo mei ti bo fang cheng shi , er qie wo hui gao su nin ru he zai shi fen zhong zhi nei xie chu yi ge duo mei ti bo fang cheng shi ,「 shi fen zhong ! you mei you gao cuo ?」, mei cuo , jiu shi shi fen zhong , yong C++ Builder ni jue dui ke yi zai shi fen zhong nei xie chu yi ge gou shui zhun de mei ti bo fang cheng shi ' ji shi ni shi yi ge cai de bu neng zai cai de chu xue zhe 。 ta de zhi xing hua mian ru xia : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423546858.gif[/img][/url] hao xi kai luo la ! zai jin ru C++ Builder shi ni hui kan dao yi xia de hua mian [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547026.gif[/img][/url] shou xian wo jian dan di wei ni jie shao C++ Builder fa zhan huan jing , zai ci wo zhi dui zheng ge fa zhan huan jing zuo yi ge jian dan de liu lan , yi li cheng shi de zhuan xie 。 C++ Builder fa zhan huan jing zhu yao fen wei yi xia yuan jian : (1) biao ge (Form) shi chuang (2) yuan jian he (Compoment palette) (3) wu jian jian shi qi (Object Inspector) (4) cheng shi bian ji qi (Code Editor) (5) jia su bang (SpeedBar) biao ge shi chuang (Form) [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547090.gif[/img][/url] biao ge shi C++ cheng shi she ji de jiao dian , wo men ke yi jiang biao ge shi wei yi zhang hua bu , zai cheng shi she ji shi , wo men zhu yao zuo de gong zuo zhi shi jiang cheng shi yuan jian fang zhi zai biao ge shang er yi 。 yin ci biao ge qi shi ke shi wei yi ge bao han qi ta yuan jian de ruan ti yuan jian 。 yuan jian he (Compoment Palette) [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547197.gif[/img][/url] ruan ti yuan jian shi ni yong yi jia gou C++ Builder cheng shi de ji ben yuan su 。 zai C++ Builder zhong ruan ti yuan jian yi qi yuan jian te xing fen men bie lei di fang zhi zai huo ye shi de yuan jian he zhong , zai C++ Builder zhong ti gong le chao guo le bai zhong yi shang de ji ben yuan jian , cheng shi she ji shi , zhi yao jiang yuan jian he nei de ruan ti yuan jian tuo fang zhi biao ge zhong ji ke 。 wu jian jian shi qi (Object Inspector) [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547230.gif[/img][/url] wu jian jian shi qi shi yong yi gai bian wu jian de nei rong , gai bian gai wu jian de xing wei mo shi yi fu he ni de xu yao 。 wu jian de nei rong bao han le shu xing (Property) ji qi shi jian chu li cheng shi (Event Handler)。 ni ke yi shi xu yao gai bian zhi ding wu jian de zhuang tai ji xing wei mo shi 。 cheng shi bian ji qi (Code Editor) [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547321.gif[/img][/url] C++ Builder de cheng shi bian ji qi shi yi ge quan gong neng de bian ji qi , ta rang ni ke yi cun qu ji bian ji suo you zhuan an nei de cheng shi 。 jia su bang (SpeedBar) [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547362.gif[/img][/url] jia su bang (SpeedBar), gu ming si yi , ta shi yong lai jia kuai cheng shi de cao zuo 。C++ Builder jiang xu duo zai gong neng biao zhong chang yong de gong neng , zai jia su bang zhong yi jie jing de fang shi ti gong ni shi yong 。 ni de di yi ge C++ Builder cheng shi wo men yi jing jian dan di jie shao le C++ Builder cheng shi fa zhan huan jing , xian zai wo men yao kai shi zhuan xie wo men de di yi ge cheng shi ' mei ti bo fang cheng shi 。 she ji biao ge shou xian ni yao xian she ji ni suo yao shi yong de biao ge chang xiang 。 she ji biao ge fei chang jian dan , qi shi zhi shi jiang ruan ti yuan jian fang zai shi chuang zhong er yi 。 yi xia wo yi ji ge bu zhou shi fan biao ge de she ji : (1) kai qi xin biao ge (2) jiang ruan ti yuan jian zhi ru biao ge zhong (3) she ding ge ge ruan ti yuan jian de shu xing (4) zhi xing cheng shi wan cheng le yi shang de cheng xu hou , da di yi ge cheng shi ye cha bu duo she ji wan le 。 zhe ye shi C++ Builder de mi ren zhi chu 。 kai qi xin biao ge zai jin ru C++ Builder hou , ta hui zi dong wei ni kai qi yi ge xin de biao ge 。 ci shi biao ge kai qi de gong zuo jiu suan wan cheng le , ruo shi yao jia ru qi ta xin de biao ge , zhi yao zhi xing [File/New Form] ji ke 。 jiang ruan ti yuan jian zhi ru biao ge zhong zai kai qi xin biao ge hou , ni ke yi zai yuan jian he zhong xuan qu yuan jian , zhi ru biao ge zhong , zai ci yao fei fan shuo ming de shi , zai C++ Builder de she ji shi qi (Design Time) he zhi xing shi qi (run time), da bu fen yuan jian de xing wei mo shi ji hu shi xiang tong , suo yi zai she ji shi ni jiu ke yi kan dao cheng shi zhi xing de jie guo 。 zai wo men de zhe ge cheng shi zhong , chu le biao ge wai , you yi ge yuan jian bao han le qi ta de yuan jian , na jiu shi huo ye shi biao ge yuan jian (TabbedNoteBook), zhe ge yuan jian he biao ge lei si , bi xu zui zao fang ru biao ge zhong yi rong na qi ta yuan jian 。 zai wo men de di yi ge cheng shi zhong zhi ru ruan ti yuan jian hou de jie guo ru xia : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547414.gif[/img][/url] ni ke yi kan dao , chu le yin wei mei you zhi xing , suo yi mei you xian shi dong hua dang zhi wai , ta he zhi xing de jie guo ji hu yi mo yi yang 。 shou xian wo men lai kan kan zhe ge cheng shi yong dao le na xie yuan jian 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547456.gif[/img][/url] TTabbedNoteBook huo ye shi biao ge yuan jian 。 wei yu yuan jian he de 「Win3.1」 ye , yong yi zuo chu 「 dong hua ji yin xiao ji | yin le CD liang ge biao ge 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547503.gif[/img][/url] Tlabel biao ti yuan jian 。 wei yu yuan jian he de 「Standard」 ye , yong yi xian shi " mei ti bo fang cheng shi " zi yang 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547524.gif[/img][/url] TPanel mian ban yuan jian 。 wei yu yuan jian he de 「Standard」 ye , yong yi xian shi dong hua tu xing dang 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547556.gif[/img][/url] TMediaPlayer mei ti bo fang yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi bo fang duo mei ti 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547572.gif[/img][/url] TDriveListBox ci die ji lie biao yuan zuo 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi ci die ji ming 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547591.gif[/img][/url] TFilterComboBox dang ming guo lv qi yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi guo lv dang ming 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547632.gif[/img][/url] TDirectoryListBox mu lu lie biao yuan jian 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi mu lu 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547668.gif[/img][/url] TFileListBox dang an lie biao yuan zuo 。 wei yu yuan jian he de 「System」 ye , yong yi xian shi dang an 。 zai shi yong zhe xie yuan jian shi , qing xian zhi yuan jian he zhong xuan chu yu shi yong de yuan jian , ran hou jiang qi tuo fang zhi biao ge zhong shi dang de wei zhi , zai gai bian yuan jian de da xiao , ru ci ni jiu ke yi de dao yi ge biao ge de chu xing le 。 she ding ge ge ruan ti yuan jian de shu xing jiang ruan ti yuan jian zhi ru biao ge zhong zhi hou , zai lai wo men jiu yao kai shi she ding yuan jian shu xing le 。 wei le yao rang zhe xie yuan jian hu xiang he zuo , wo men bi xu she ding ta men zhi jian de guan xi , zai she ding zhi qian wo men xian zai xi xiang xiang ta men zhi jian de dong zuo mo shi : shou xian si kao ci die ji ji dang an yuan jian de guan xi : (1) gai bian ci die ji hou , mu lu bi xu gen zhe gai bian 。 (2) gai bian mu lu hou , dang an lie biao bi xu gen zhe gai bian 。 (3) gai bian dang ming guo lv qi hou , dang an lie biao bi xu gen zhe gai bian 。 zai le jie ta men de guan xi hou , wo men jiu ke yi kai shi dong shou lai she ding ta men de shu xing le , she ding shu xing qi shi fei chang jian dan , zhi yao zai biao ge shang xuan qu gai yuan jian shi , wu jian jian shi qi jiu hui xian shi gai wu jian suo you de shu xing , yi ci die ji yuan jian wei li , dang wo men xuan qu dao gai yuan jian shi , wu jian jian shi qi jiu hui qie huan dao ru xia tu suo shi de zhuang tai : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547681.gif[/img][/url] ci shi ni ke yi kan dao zai wu jian jian shi qi xian shi le ci die ji lie biao yuan jian de shu xing , qi zhong wo men gan ai hao de shi 「DirList」 yi xiang , ni ke yi xuan qu gai lan wei , ci shi ni hui fa xian ta hui chu xian yi ge lie biao , zhe ge lie biao hui jiang mu qian biao ge zhong suo you de mu lu lie biao yuan jian xian shi chu lai , yin wei wo men suo she ji de biao ge zhong zhi you yi ge mu lu lie biao yuan jian , suo yi ni zhi yao xuan ze gai lie biao zhong wei yi de yi ge ji ke 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547749.gif[/img][/url] yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li ci die ji lie biao yuan jian he mu lu lie biao yuan jian zhi jian de guan xi , dang ci die ji gai bian shi , bi xu tong zhi mu lu lie biao yuan jian , shi qi gen zhe gai bian 。 tong li wo men xuan qu mu lu lie biao yuan jian , bing she ding qi shu xing , zai mu lu lie biao yuan jian zhong wo men gan ai hao de shi 「FileList」 lan wei , ci shi ni ke yi xuan qu gai lan wei , bing jiang ta she ding wei biao ge zhong de dang an lie biao yuan jian 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547829.gif[/img][/url] yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li mu lu lie biao yuan jian he dang an lie biao yuan jian zhi jian de guan xi , dang mu lu gai bian shi , bi xu tong zhi dang an lie biao yuan jian , shi qi gen zhe gai bian zhi mu qian mu lu de lie biao 。 jie zhe wo men xuan qu dang ming guo lv qi yuan jian , bing she ding qi shu xing , zai dang ming guo lv qi yuan jian zhong wo men gan ai hao de shi 「FileList」 lan wei , ci shi ni ke yi xuan qu gai lan wei , bing jiang ta she ding wei biao ge zhong de dang an lie biao yuan jian 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547873.gif[/img][/url] yi shang de dong zuo suo dai biao de yi yi jiu shi : jian li dang ming guo lv qi yuan jian he dang an lie biao yuan jian zhi jian de guan xi , dang dang ming guo lv qi gai bian shi , bi xu tong zhi dang an lie biao yuan jian , shi qi gen zhe gai bian zhi mu qian de dang an lie biao 。 zui hou , wo men yao she ding dang ming guo lv qi yuan jian de guo lv , zai zhe ge cheng shi zhong wo xi wang ke yi bo fang AVI dong hua dang ji WAV yin xiao dang , suo yi bi xu shi dang di she ding dang ming guo lv qi yuan jian , tong yang di , wo men shou xian xuan qu dang ming guo lv qi yuan jian 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547920.gif[/img][/url] zai zhe ge yuan jian zhong wo men suo gan ai hao de shi qi zhong de 「Filter」 shu xing , yin ci wo men zai gai xiang mu shang dian er xia , ci shi wo men hui kan dao ru xia de hua mian : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423547997.gif[/img][/url] ru tu suo shi , wo men jiang AVI dong hua dang ji WAV yin xiao dang de guo lv zi yuan tian ru ji ke 。 zai cheng shi zhi xing shi , la xia dang ming guo lv qi shi suo xian shi de ming cheng , jiu shi ni suo tian ru de guo lv qi , ta hui fa hui ba guan de jiao se , shi de zhi you fu he tiao jian de dang ming xian shi zai dang an lie biao zhong 。 wan cheng le yi shang dong zuo zhi hou , ni jiu yi jing jiang ci die ji ji dang an lie biao yuan jian she ding wan cheng le , ci shi ni ke yi xian xing zhi xing cheng shi , kan kan qi dong zuo shi fou zheng que 。 zhi xing cheng shi de fang fa shi zai xuan qu xuan dan shang de 「Run/Run」, huo shi zhi jie an 「F9」 ji ke 。 ru he ? shen qi ba ! yong C++ Builder xie cheng shi jiu shi zhe me jian dan 。 zai lai wo men si kao duo mei ti bo fang cheng shi de bu fen , wo men xi wang ta de dong zuo fang shi ru xia : (1) yi TPanel lai xian shi dong hua hua mian 。 (2) yi duo mei ti bo fang yuan jian lai bo fang mu qian dang an lie biao zhong suo xuan qu de dang an 。 (3) zai dang an lie biao yuan jian yi shuang ji (Double-Click) lai bo fang gai dang an 。 shou xian wo men xian lai kan kan duo mei ti bo fang yuan jian de nei rong : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548024.gif[/img][/url] zai duo mei ti bo fang cheng shi zhong wo men gan ai hao de shi qi zhong de 「Display」 xiang mu 。 yin ci wo men xuan qu 「Display」 xiang mu , ci shi ni hui kan dao suo you zai biao ge zhong ke gong xian shi de yuan jian : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548074.gif[/img][/url] wo men xi wang jiang dong hua hua mian xian shi zai 「Panel1」 yuan jian zhong , yin ci qing ni xuan ze 「Panel1」 xiang mu 。 wan cheng zhe ge dong zuo zhi hou , mei ti bo fang cheng shi zai bo fang dong hua dang shi hui jiang hua mian xian shi zai 「Panel1」 shang 。 jie zhe wo men she ding bo fang de dong zuo : yao she ding bo fang de dong zuo , ni bi xu xuan qu duo mei ti bo fang yuan jian , bing jiang wu jian jian shi qi qie huan zhi 「 shi jian (Events)」 ye , ran hou zai qi zhong de OnClick shang an liang xia (Double-Click), jie zhe C++ Builder hui wei ni zi dong chan sheng yi duan kong de cheng shi ma de , ran hou jiu qie huan zhi cheng shi bian ji qi zhong 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548119.gif[/img][/url] yi xia de hua mian ji shi C++ Builder qie huan de cheng shi bian ji qi hua mian , ci hua mian wo yi jing tian ru le cheng shi ma , ni de cheng shi ying gai shi kong de 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548156.gif[/img][/url] zai lai wo men kan kan ying gai zai qi zhong tian ru na xie cheng shi ma ne ? void __fastcall TForm1::MediaPlayer1Click(TObject *Sender, TMPBTnType Button, bool &DoDefault) { // yi xia wei wo men tian ru de cheng shi ma if (Button==btPlay) { MediaPlayer1->FileName=FileListBox1->FileName; MediaPlayer1->Open(); MediaPlayer1->Play(); DoDefault=FALSE; } else DoDefault=TRUE; } yi shang wo men tian ru de cheng shi ma de zhu yao dong zuo jiu shi : (1) jiang mei ti bo fang yuan jian dang ming zhi ding wei dang an lie biao yuan jian mu qian de dang ming 。 (2) kai qi mei ti bo fang cheng shi 。 (3) kai shi bo fang 。 jin xing dao zhe er , ni ke yi zai ci zhi xing cheng shi 。 ran hou xuan qu shi dang de dang an , zai xuan hao le dang an zhi hou , ni jiu ke yi zai duo mei ti bo fang yuan jian zhong xuan ze zhi xing [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548231.gif[/img][/url], ruo shi ni suo xuan ze de shi AVI dong hua dang , ni yi jing ke yi kan dao dong hua bo fang zai wo men suo zhi ding de yuan jian 「Panel1」 shang le 。 [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548298.gif[/img][/url] zui hou , wo men xi wang zai ti gong yi zhong bo fang dang an de fang shi , na jiu shi zai dang an lie biao zhong yi shuang ji (Double-Click) de fang shi lai bo fang zhi ding dang an 。 ci shi wo men ke yi xuan ze dang an lie biao yuan jian , bing jiang wu jian jian shi qi qie huan zhi shi jian ye , zhe shi ni hui kan dao yi xia de hua mian : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548445.gif[/img][/url] tong yang di ni ke yi zai 「OnDblClick」 xiang mu shuang ji , ci shi C++ Builder hui zi dong wei wo men chan sheng cheng shi ma , bing qie zi dong qie huan zhi cheng shi ma bian ji qi zhong : [url=http://www.wangchao.net.cn/bbs/pydetail_1785410.html][img]http://image.wangchao.net.cn/it/1323423548550.gif[/img][/url] shang tu ji wei cheng shi ma bian ji hua mian , ci hua mian wo yi jing tian ru le cheng shi ma , ni de ying gai shi kong de , jie zhe ni zai yu bian ji qi zhong tian ru yi xia de cheng shi ma : void __fastcall TForm1::FileListBox1DblClick(TObject *Sender) { MediaPlayer1->FileName=FileListBox1->FileName; MediaPlayer1->Open(); MediaPlayer1->Play(); } yi shang wo men tian ru de cheng shi ma de zhu yao dong zuo jiu shi : (1) jiang mei ti bo fang yuan jian dang ming zhi ding wei dang an lie biao yuan jian mu qian de dang ming 。 (2) kai qi mei ti bo fang cheng shi de zhi ding dang an 。 (3) kai shi bo fang 。 zai wan cheng le shang shu de cao zuo zhi hou , ni ke yi zai ci di zhi xing cheng shi , xuan qu yu bo fang de dang an , ran hou yi shuang ji de fang shi lai zhi xing dang an 。 jin xing dao zhe er , ni yi jing ba wo le C++ Builder cheng shi she ji de jing shen , ye xie chu le yi ge bu cuo de mei ti bo fang cheng shi 。 ni shi bu shi dui C++ Builder de kuai su cheng shi fa zhan huan jing (RAD:Rapid Application Development) yu lai yu you xin xin le ne ? jie xia lai ni hui fa xian , dao mu qian wei zhi , wo si hu mei you ba zhe ge fan li cheng shi wan quan jie shuo qing chu , yin wei qian mian de zhi xing hua mian zhong de huo ye shi biao ge yuan jian zhong , huan you ling yi ye shi 「 yin le CD」 de bo fang , ling wai guan yu 「 mei ti bo fang cheng shi 」 zhe ge zi xing de she ding fang shi ye mei you jie shuo 。 shi de , mei cuo , zhe xie dou shi wo da suan liu gei ni zi xing lian xi de xiang mu , yin wei jiao zhi qian mian suo shu de ji ge cao zuo , ta men dou jian dan duo le , yi xia wo xian jian dan tou lu ji ge chong dian : (1) xuan ze 「 huo ye shi biao ge 」 yuan jian , bing gai bian qi 「Pages」 shu xing 。 li yong ta suo ti gong de bian ji qi , bian ji ye shu ji ming cheng 。 (2) jiang 「ActivePage」 qie huan zhi yin le CD ye , ru qian mian suo shu jia ru yi ge duo mei ti bo fang yuan jian 。 (3) jiang duo mei ti bo fang yuan jian de 「Device Type」 she ding wei CD Audio. (4) zhuan xie bo fang cheng shi ma 。 yin wei bo fang yin le CD bu xu yao kai dang , suo yi bu xu yao zhi ding dang an 。 (5) she ding ge ge biao de zi xing 。 wan cheng le yi shang de dong zuo hou , ni ke yi zai du zhi xing cheng shi bing qie huan 「 yin le CD」 zhong , fang ru CD, ran hou jiu ke yi bo fang CD le 。 ni ke yi shi zhe zi xing qu da zao ni de cheng shi hua mian , yi shang de cheng shi hua mian dou zhi yong le jian dan de biao ti yuan jian ji tu xing yuan jian er yi , ni ke yi chang shi zhe wan wan kan 。 yi shang jiu shi wo men yong C++ Builder suo zhuan xie de di yi ge cheng shi , ta shi bu shi gei le ni yi ge quan xin de gan shou , yuan lai Window cheng shi she ji ye ke yi shi ru ci zhe ban de qing song 。 dang ran , zhe zhi shi yi ge kai shi er yi , zai hou xu de dan yuan zhong , wo hui ji xu dai zhe ni zou jin C++ Builder suo jia gou de piao liang xin shi jie , tan suo zhe zhong xin de cheng shi she ji fang fa 。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
玉美人_珠联璧合
清纯美女米卡
清新靓丽的早晨
玲子的自信与性感
痞子的甘南日记
疑是银河落九天
雪域坝上四——纯美色
冬日恋歌——西城杨柳弄轻柔
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有