Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Delphi ×é¼þ¿ª·¢½Ì³ÌÖ¸ÄÏ£¨3£©×é¼þ×¢²á

ÔÚÉÏһƪÖУ¬ÎÒÃǼòµ¥µÄʵÏÖÁËÒ»¸ö¶ÔDelphi×ÔÉíµÄTEdit±à¼­¿ò¿Ø¼þµÄÒ»¸öÀ©³ä£¡µ«ÊÇÎÒÃDz¢²»ÄÜÏñDelphi×Ô¼ºµÄTEditÒ»Ñù£¬Äܹ»
ÔÚÉè¼Æ״̬ϽøÐÐÉè¼Æ£¬¶øÊǷǵÃÒª×Ô¼ºÊÖ¶¯´´½¨¿Ø¼þ£¬È»ºó²ÅÄÜʹÓá£Õâ¸öËäȻ˵ҲÊÇ×é¼þ£¬µ«ÊÇȴʧȥÁË×é¼þµÄ¿ÉÉè¼ÆµÄ·½±ãÐÔ£¬½ö½ö¿É×÷Ϊһ¸öÀà¿âÀ´Ê¹Óá£
ÏÖÔÚÎÒ¾ÍÀ´½éÉÜһϣ¬ÈçºÎÈÃÕâ¸ö×é¼þ×¢²áµ½IDEÉÏ£¬È»ºóÈÃÄãÄܹ»ÔÚÉè¼Æ״̬Ï¿ÉÒÔÉè¼ÆʹÓá£
   ÔÚ½²×¢²á×é¼þµÄʱºò£¬ÎÒÃÇÐèÒªÏÈÃ÷°×DelphiÖеİüµÄ¸ÅÄÕâÀïÎҾͲ»×ö˵Ã÷ÁË£¬²»Çå³þµÄ£¬¿ÉÒÔµ½CnpackÍøվȥÁ˽âÕâ·½ÃæµÄ֪ʶ
¡£ÔÚ×¢²á×é¼þʱ£¬¾ÍÐèÒªÒ»¸öÉè¼ÆÆÚ¼äµÄ°üÎļþ£¬È»ºó½«ÎÒÃÇÉÏ´Îн¨µÄEditµÄÄǸöµ¥ÔªÎļþÌí¼Óµ½°üÖС£Ê×ÏÈ£¬ÎÒÃÇн¨Ò»¸ö°üÎļþ£¬È»ºóÌí¼Óµ¥ÔªÎļþ£¬¾ßÌå²Î¿¼ÈçÏ£º
´ÓͼÉϵIJÙ×÷¿ÉÒÔ¿´µ½£¬ÎÒÏÈн¨ÁËÒ»¸öÃû×Ö½Ð×öTestPackageµÄ°ü£¬È»ºó½«Edit1.pasµÄµ¥ÔªÎļþÌí¼Óµ½Õâ¸ö°üÀïÃæÁË£¬Ö®ºó±àÒ룬°²
×°ÁËÖ®ºó£¬¾Í½«¿Ø¼þÏÔʾÔÚStandardÄǸö×é¼þÀ¸ÖÐÁË£¬ÀïÃæÓÐÒ»¸öTEdit1µÄ×é¼þ£¬ÄǸö¾ÍÊÇÎÒÃÇ´ÓTEdit¼Ì³Ð¹ýÀ´µÄÐÂ×é¼þ£¡È»ºóÔÙ¿´ÊôÐԱ༭
Æ÷ÖоͶàÁËAlignmentÕâ¸öÊôÐÔ£¬ÉèÖÃËü£¬¾ÍÄÜÉèÖÃÎÄ×ֵĶÔÆ뷽ʽÁË¡£
  
ºÃÁË£¬µ½´ËΪֹ£¬Õâ¸ö¼òµ¥×é¼þ¾Í×¢²áÍê³ÉÁË£¬¿ÉÄÜÓÐÈ˲»Á˽⣬¾Í½¨Á¢Ò»¸ö°ü£¬±àÒë°²×°£¬¾ÍÄܽ«×é¼þ×¢²áµ½IDEµÄ×é¼þÀ¸ÖÐÈ¥Âð£¿Êµ¼ÊÉϵ±È»²»ÊÇ×ö¸ö°²×°°ü
±àÒëһϾÍÍêÁ˵ġ£»¹¼ÇµÃ£¬ÔÚÉÏһƪÖУ¬ÎÒ×ʼÓÃ×é¼þ±àдÏòµ¼×öÁËʲôÂð£¿ÎÒÑ¡ÔñÁ˽«×é¼þ°²×°µ½StandardÄǸöÀ¸ÉÏ¡£ÓÐÐĵÄÈË´ò¿ª
Eidt1.pas¿ÉÄܾͻᷢÏÖÔÚEdit1.pasÖÐÓÐÒ»¸ö×¢²áµÄ¹ý³ÌΪ
procedure
Register;
implementation
procedure
Register;
begin
RegisterComponents(
'
Standard
'
, [TEdit1]);
end
;
Õâ¸öRegister¾ÍÊÇ×é¼þ×¢²áµÄ¹ý³Ì£¬°ü»á×Ô¶¯µ÷Óõģ¬×¢²á¹ý³ÌÖе÷ÓÃÁËRegisterComponentsÕâ¸ö¹ý³Ì
Õâ¸ö¹ý³ÌµÄµÚÒ»¸ö²ÎÊýÖ¸¶¨Òª×¢²áµ½IDEµÄÄĸö×é¼þÃæ°å£¨Èç¹ûIDE×é¼þÃæ°åÖÐûÓÐÄã¸ø¶¨µÄÕâ¸öÖµ£¬Delphi»á×Ô¶¯Ìí¼ÓÒ»¸öеÄ×é¼þÃæ°å£©£¬²ÎÊý¶þÖ¸¶¨µÄÊÇҪע²áµ½IDEµÄ×é¼þ¶ÔÏóÀàÊý×é¡£
ÁíÍ⣬ÕâÀïÒªÌá³öÐèҪעÒâµÄÒ»µã¾ÍÊÇ£¬ËäÈ»Delphi±¾ÉíÊDz»Çø·Ö
´óСдµÄ£¬µ«ÊǼǵÃÕâ¸ö×é¼þ×¢²áµÄ¹ý³ÌµÄRegister±ØÐëÊÇÕâ¸öÑù×Ó£¬¶ø²»Äܱä³ÉСдregisterÕâÑù£¬·ñÔò£¬×é¼þ¾Í×¢²á²»ÉÏÈ¥Á˹þ£¬Í¬Ê±£¬×¢
Ò⣬ÎÒÔÚÇ°Ãæ¸øTEdit1µÄÐÂÊôÐÔAlignmentµÄÉùÃ÷ÊÇ·ÅÔÚPublishedÕâ¸öÓòÖеģ¬ÕâÊÇÒòΪҪÏëÔÚIDEÉè¼ÆÆÚ»·¾³Äܹ»¿´µ½Õâ¸öÊôÐÔ£¬¾Í
±ØÐë·ÅÔÚPublished


Ïà¹ØÎĵµ£º

ÔÚWIN32ÖеĴ®¿ÚͨѶ£¨Delphi£©

ÔÚWIN32ÖеĴ®¿ÚͨѶ£¨Delphi£©
ÓÉÔÚWIN32²Ù×÷ϵͳÖнûÖ¹Ó¦ÓóÌÐòÏóDOSÖÐÄÇÑùÖ±½Ó·ÃÎʼÆËã»úÓ²¼þ£¬Òò´Ë£¬ÎÞ·¨ÏóÒÔÇ°ÄÇÑù²ÉÓÃÖж϶Áд´®¿Ú¡£µ«ÊÇÔÚWIN32ÖÐÎÒÃÇ¿É·¢²ÉÓÃÁ½ÖÖ·½·¨·ÃÎÊ´®¿Ú£º1¡¢Ê¹ÓÃVBÖеÄMSCOMM´®¿Ú¿Ø¼þ£»2¡¢²ÉÓÃAPIº¯Êý£¬±¾ÎÄÖ÷Òª½éÉܲÉÓÃAPIº¯ÊýʵÏÖ´®¿ÚͨѶ¡£
ÓÉÓÚWM_COMMNOTIFYÏûÏ¢Òѱ»È¡Ïû£¬¹Ê±¾ÎÄ×Ô¶ ......

Delphi 쵀RTTI

Ŀ¼
===============================================================================
¡Ñ RTTI ¼ò½é
¡Ñ Àà(class) ºÍ VMT µÄ¹Øϵ
¡Ñ Àà(class)¡¢ÀàµÄÀà(class of class)¡¢Àà±äÁ¿(class variable) µÄ¹Øϵ
¡Ñ TObject.ClassType ºÍ TObject.ClassInfo
¡Ñ is ºÍ as ÔËËã·ûµÄÔ­Àí
¡Ñ TTypeInfo – RTTI ÐÅÏ¢µÄ½ ......

Delphi TStream Ïêϸ½éÉÜ

Delphi TStream Ïêϸ½éÉÜ
Stream¶ÔÏó£¬ÓÖ³ÆÁ÷ʽ¶ÔÏó£¬ÊÇTStream¡¢THandleStream¡¢TFileStream¡¢TMemoryStream¡¢TResourceStreamºÍTBlobStreamµÈµÄͳ³Æ¡£ËüÃÇ·Ö±ð´ú±íÁËÔÚ¸÷ÖÖý½éÉÏ´æ´¢Êý¾ÝµÄÄÜÁ¦£¬ËüÃǽ«¸÷ÖÖÊý¾ÝÀàÐÍ(°üÀ¨¶ÔÏóºÍ²¿¼þ) 
ÔÚÄÚ´æ¡¢Íâ´æºÍÊý¾Ý¿â×Ö¶ÎÖеĹÜÀí²Ù×÷³éÏóΪ¶ÔÏó·½·¨£¬²¢ÇÒ³ä·ÖÀûÓÃÁËÃæÏò¶Ô ......

DELPHI 2005ÖÐÉ趨RS232£¨´®¿Ú£©¿Ø¼þ£¨MSCOMM£©µÄ·½·¨

ÔڵͰ汾ÖÐÉ趨MSCOMM¿Ø¼þ£¬Êǵ¼ÈëMSCOMM×é¼þ£¬È»ºó¾Í¿ÉÒÔ¿´¼ûMSCOMM¿Ø¼þµÄµç»°µÄͼ±êÁË£¬µ«ÊÇÔÚDELPHI 2005»òÒÔÉÏ°æ±¾ÖоͱØÐëÏȰѴ˿ؼþ´´½¨µ½°üÖУ¨BPL£©È»ºóµ¼ÈëBPL£¬ÄǸöµç»°Í¼±ê¾Í¿ÉÒÔ¿´¼ûÔÚ¹¤¾ßÌõÉÏÁË¡£ÎÒÊÔÁ˶àÉٻزÅÊÔ³öÀ´µÄ¡£ ......

Delphi×é¼þ¿ª·¢½Ì³ÌÖ¸ÄÏ£¨1£©×é¼þ¿ª·¢¸ÅÊö

ÔÚ¿ª½²Ö®Ç°£¬Ê×ÏÈ£¬ÎÒ¼ÙÉèÄãÁ˽âʲôÊÇÃæÏò¶ÔÏó£¬Ê²Ã´ÊÇÀà¡£Èç¹û²»Á˽âµÄ»°£¬½¨ÒéÏÈÈ¥Á˽âÒ»ÏÂÏà¹Ø֪ʶ£¡
  
ÔÚDelphiÖУ¬×é¼þ£¬ÎÒÃÇ¿ÉÒÔ½«ËüÀí½âΪһ¸ö¸öµÄ·â×°ºÃÁ˵ŦÄܶÔÏó¿â£¬Ê¹ÓÃÕâ¸ö¿â£¬¾ÍÖ»Óüòµ¥µÄ¼¸¾ä´úÂ룬ÉõÖÁ½ö½ö¼òµ¥µÄÉèÖü¸¸öÊôÐÔ¾ÍÄÜʵÏÖijЩ
¹¦ÄÜ£¬ÎÒÃÇ¿ÉÒÔ½«×é¼þÏëÏó³ÉÈÕ³£Éú»îÖÐʹÓõÄijЩ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ