Delphi ÖÐÈçºÎ°²×°×é¼þ?
Delphi ÖÐÈçºÎ°²×°×é¼þ?
delphiÖÐÈçºÎ°²×°×é¼þÓÐÎåÖÖÇé¿ö£º
1¡¢Ö»ÓÐÒ»¸öDCUÎļþµÄ×é¼þ¡£DCUÎļþÊDZàÒëºÃµÄµ¥ÔªÎļþ£¬ÕâÑùµÄ×é¼þÊÇ×÷Õß²»Ïë°ÑÔ´Â빫²¼¡£Ò»°ãÀ´Ëµ£¬×÷Õß±ØÐë˵Ã÷´Ë×é¼þÊʺÏDelphiµÄÄÄÖÖ°æ±¾£¬Èç¹û°æ±¾²»¶Ô£¬ÔÚ°²×°Ê±¾Í»á³öÏÖ´íÎó¡£Ò²ÕýÊÇÒòΪûÓÐÔ´Â룬¸øʹÓÃÕß´øÀ´Á˲»±ã£¬ÄǾÍÊÇÒ»µ©Delphi°æ±¾Éý¼¶£¬´Ë×é¼þ¾Í²»ÄÜÔÙʹÓÃÁË£¬µ±È»ÓеÄ×÷Õ߸ø³öÁ˼¸ÖÖ°æ±¾µÄDCUÎļþ£¬Óû§¸ù¾ÝÐèҪѡÔñʹÓá£ÕâÑùµÄ×é¼þµÄ°²×°·½·¨ÊÇ£ºÔÚComponent²Ëµ¥ÖУ¬Ñ¡Ôñinstall component£¬ÔÚ¶Ô»°¿ò “into existing package“Ò³ÖУ¬µ¥»÷“Unit file name”ºóµÄ“Browse”°´Å¤£¬ÔÚ´ò¿ªµÄÎļþ¶Ô»°¿òÖУ¬½«“ÎļþÀàÐÍ”É趨Ϊ*.dcu£¬ÕÒµ½Òª°²×°µÄDCUÎļþ£¬°´OK°´Å¥·µ»Ø“into existing package“Ò³ºóÔÙ°´OK°´Å¥¾Í¿ÉÒÔ°²×°ÁË¡£×¢Ò⣬´ËʱDelphi»áÌáʾdclusr40.dpk½«±»Öؽ¨£¬ÊÇ·ñ¼ÌÐø£¬OK¾Í¿ÉÒÔÁË¡£ÕâÀïÊǽ«×é¼þ°²×°µ½dclusr40.dpk°üÖУ¬´Ë°ü´ÓÎļþÃûÉÏ¿ÉÒÔ¿´³öÊÇÓû§×Ô¶¨Òå×é¼þ°ü£¬ÏÈ°²×°µ½Õâ¸ö°üÖаɣ¬ÏÂÃæÔÙ½²ÓйØ×¢ÒâÊÂÏî¡£°²×°Íê±Ï»áÓÐÒѾ½«×é¼þ×¢²áÍêµÄÌáʾÐÅÏ¢ÒÔ¼°°²×°µ½Äĸö×é¼þÒ³ÖеÄÐÅÏ¢µÈ£¬µ½×é¼þÃæ°åÉÏ¿´¿´£¬Ò»°ã»á³öÏÖÒ»¸öеÄ×é¼þÒ³£¬ÆäÖÐÓиհ²×°µÄ×é¼þ¡£
2¡¢ Ö»ÓÐPASÎļþ»ò¼ÈÓÐPASÓÖÓÐDCUÎļþµÄ×é¼þ¡£ÕâÖÖ×é¼þÒòΪÓÐPASÎļþ£¬Ò²¾ÍÊÇ˵×÷ÕßÌṩÁËÔ´Â룬Õâ¾ÍºÃ°ì¶àÁË¡£°²×°µÄ·½·¨ºÍÉÏÃæÊÇÒ»ÑùµÄ£¬ÔÚÎļþÀàÐÍÖпÉÒÔÉ趨ΪDCUÒ²¿ÉÒÔÉ趨ΪPAS£¬½¨ÒéÉ趨ΪPAS£¬ÕâÑù¿ÉÓÃÄãµÄDelphiÖØбàÒëһϣ¬¿´ÊÇ·ñ»á³öÏÖÎÊÌâ¡£DelphiÉý¼¶ºóÖ»ÄÜÑ¡ÔñPASÎļþ°²×°£¬ÕâÑù²ÅÄÜÖØбàÒ룬ʹµÃ×é¼þÄÜÊÊÓ¦ÐÂDelphi°æ±¾¡£ÕâÑùµÄ×é¼þÊǺÜÖµµÃʹÓõģ¬¸ù¾ÝÐÄÁåµÄ¾Ñ飬ûÓÐÔ´ÂëµÄ×é¼þ×îºÃ²»ÒªÊ¹Óã¬Ò»ÊÇ´æÔÚDelphi°æ±¾Éý¼¶ºóÎÞ·¨Ê¹ÓõÄÎÊÌ⣬ÔÙÕßµ±³ÌÐò³öÏÖÎÊÌâºóÓû§ÎÞ·¨µ÷ÊÔ×é¼þÀ´ÅжÏÊÇ·ñÊÇ×é¼þÖдæÔÚBUG¡£
3¡¢ÓÐdpkÎļþµÄ×é¼þ°ü¡£´øÓÐdpkÎļþµÄ×é¼þ°üÒ»°ãÊÇÓжà¸ö×é¼þ¹¹³ÉµÄ£¬Ò²¾ÍÊÇ˵°²×°ºó»áÓжà¸ö×é¼þ¹©Ê¹Óã¬Èç¹ûÖ»ÓÐÒ»¸ö×é¼þ×÷ÕßÒ»°ã²»»áÖƳÉDPKÎļþ£¬Ê¹ÓÃÉÏÃæµÄ·½Ê½·¢²¼¾Í¿ÉÒÔÁË¡£¶ÔÓÚÕâÑùµÄ×é¼þ°ü£¬Ò»°ãÀ´Ëµ»áÓÐÏêϸµÄ°²×°ËµÃ÷Îļþ£¬ÈçÉÏÃæÌáµ½µÄRXLIB£¬ÓÉÓÚ×é¼þ¸´ÔÓÇÒ°²×°Ê±ÓÐÏȺó˳Ðò£¬×÷Õß²»Ìṩ°²×°ËµÃ÷Óû§¸ù±¾ÎÞ·¨ÕýÈ·°²×°¡£Èç¹ûûÓа²×°ËµÃ÷Îļþ£¬ÄÇôÓÃÏÂÃæµÄ·½·¨°²×°£ºÔÚFile²Ëµ¥Ï£¬Ñ¡Ôñ”OPEN…”´ò¿ªdpkÎļþ(ÎļþÀàÐÍÁбí¿òÖÐÑ¡*.dpk)£¬ÔÚ³öÏÖµÄPackage´°¿ÚÖУ¬¹¤¾ßÀ¸ÉÏÓÐInstall°
Ïà¹ØÎĵµ£º
µÚÒ»ÖÖ·½·¨£º
µÚÒ»²½£º ÐÞ¸ÄÊôÐÔ
1¡¢kind -> dtktime Ò²¿ÉÒÔÊÇdtkdate µ«ÊÇÔÚÓÃdtkdateµÄʱºòÐèÒª½«datemodeÊôÐÔÐ޸ijÉdmUpDown
2¡¢parseinput -> true
µÚ¶þ²½£ºÔÚonUserInputʼþÖÐдһ¾ä´úÂë
DateTimePicker1.DateTime:=DateAndTime;
×¢£ºÒÔÉÏ·½·¨ËäÈ»¿ÉÒԴﵽĿµÄ£¬µ ......
dynamic¾ÍÊÇËüÊǶ¯Ì¬·½·¨£¬Ã»Óо²Ì¬µØÖ·£¬ËùÒÔËÙ¶ÈÂýÒ»µã
virtualÊÇÐé·½·¨£¬Èç¹ûÔÚ»ùÀàÖв»ÉùÃ÷³ÉÐé·½·¨µÄ»°£¬¼Ì³Ðºó£¬¸Ã·½·¨»áÌáʾһ¾¯¸æÐÅÏ¢£¬°Ñ»ùÀàÖз½·¨ÆÁ±ÎµôÁË
---------------------------------------------------------------
¶¯Ì¬£¨Dynamic£©ºÍÐéÄ⣨Virtual£©ºó¶¼¿ÉÒÔʹÓÃOverride¹Ø¼ü×ÖÔÚÅÉÉúÀàÖжԶÔÓ¦ ......
delphiµ÷ÓÃÑ¡ÔñĿ¼¶Ô»°¿ò
¾³£¼ûÍøÉÏÓÐÈËÎÊÑ¡ÔñĿ¼¶Ô»°¿òµÄ¿Ø¼þ£¬ÆäʵֻÓÃÒ»¸öº¯Êý¾Í¿ÉÒÔʵÏÖ¡£
×¢ÒâÒýÓÃ Filectrl µ¥Ôª
use Filectrl;
procedure TForm1.Button1Click(Sender: TObject);
var
Dir: String;
begin
SelectDirectory('Select a directory', '', Dir);
ShowMessage(Dir);
end; ......