EhLib 5 Developers guide 官方开发手册.docx
- 文档编号:2829695
- 上传时间:2023-05-04
- 格式:DOCX
- 页数:77
- 大小:362.48KB
EhLib 5 Developers guide 官方开发手册.docx
《EhLib 5 Developers guide 官方开发手册.docx》由会员分享,可在线阅读,更多相关《EhLib 5 Developers guide 官方开发手册.docx(77页珍藏版)》请在冰点文库上搜索。
EhLib5Developersguide官方开发手册
LibraryofComponents–EhLib5
Developer’sguide
EhLibTeam
2012
Edition:
1.53
(Changesandadditionsarehighlightedinredcolor)
Introduction
TheLibrarycontainscomponentsandclassesforBorlandDelphiversions5,6,7,8&2005andBorlandC++Builderversions5&6,BorlandDeveloperStudio2006,CodeGearDelphi2007,
RADStudio2009,EmbarcaderoRADStudio2010,RADStudioXE&RADStudioXE2.TheLibraryisintendedtoincreasecapacityoftheclient’spartofthedatabaseapplicationbyimprovinginteractionbetweenapplicationandusers.
TDBGridEhcomponent
UsingTDBGridEh
ItprovidesallfunctionalityofTDBGridandaddsseveralnewfeaturesasfollows:
-Allowstoselectrecords,columnsandrectangleareas.
-Providesspecialtitlesthatcancoverseveralorallcolumns.
-Canhaveafooterthatisabletoshowsum/count/otherfieldvalues.
-Allowstoresizecolumnautomaticallytofitgridwidthequaltoclientwidth.
-Hasanabilitytochangerowheightandtitleheight.
-Allowsautomaticbrokenofasinglelinelongtitleanddatarowstoamultiline.
-Allowstitletoactasbuttonand,optionallyshowasortmarker.
-AllowstomarktitlesbysortmarkingsingsautomaticallyandsortdatainDataSet.
-Allowstotruncatelongtextwithellipsisincells.
-Allowslookuplisttoshowseveralfields.
-Haveanabilitytomakeanincrementalsearchinlookupfields.
-Canhavefrozennonscrollablecolumns.
-AllowstoshowDateTimepickerforTDateFieldandTDateTimeField.
-AllowstoshowbitmapsfromTImageListdependingonfieldvalue.
-Allowstohideandtrackhorizontalorverticalscrollbars.
-Allowstohidecolumns.
-Allowstoshow3Dframeforfrozen,footeranddatarows.
-Allowstodrawmemofields.
-Canshowmultilineinplaceeditor.
-CanhaveaproportionalscrollingforDadaSetsindependentlyofdataset’ssequencing.
-AllowstoshowcheckboxesautomaticallyforBooleanfields.Allowstoshowcheckboxesforothertypeoffields.
-Hasprocedurestosaveandrestorelayout(visiblecolumns,columnsorder,columnswidth,sortmarkers,rowheight)in/fromregistryorinifile.
-Allowstoshowhint(ToolTips)fortextthatdon'tfitinthecell.
-AllowstoexportdatatoText,Csv,HTML,RTF,XLSandinternalformats.
-AllowstoimportdatafromTextandinternalformats.
-Cansortdatainvariousdatasets.
-Canfilterdatainvariousdatasets.
TDBLookupComboboxEhcomponent
Usingeditcontrols
ItprovidesallfunctionalityofTDBLookupComboboxandaddsseveralnewfeaturesasfollows:
-Canhaveflatstyle.
-AllowstoassignvaluesastoKeyValuepropertyandastodisplayTextproperty.
-AllowstoholdKeyValueandTextthatwillnotaffecttoeachothersvalues.
Dropdownlistcan:
-Showtitles,
-Havesizinggrip,
-AutomaticallysetwidthassumofDisplayWidthofthelistfields(Width=-1),
-Automaticallydropswhentheuserpressedthekey.
-Canhavespecifiedwidth.
Editbuttoncan:
-ShowDropDownandEllipsisorBitmapimage.
Haveadditionalevents:
OnKeyValueChangedandOnButtonClick.
TDBSumListcomponent
UsingTDBSumList
ItisintendedforcalculatingsumsandamountofrecordsinaTDataSetwithdynamicchanges.ComponentkeepsalistofTDBSumobjects,whichcontainstypesofgroupoperations(goSumorgoCount)andnameoffieldswhichvaluesneedsomecalculation.(goCountnameoffieldisunnecessary).
TPrintDBGridEhcomponent
UsingTPrintDBGridEh
TPrintDBGridEhprovidespropertiesandroutinesforpreviewandprintofTDBGridEhcomponentwithseveralfeatures:
-Abilitytoexpandrowsverticallyuntilalltextisprinted.
-Abilitytoscalegridtofitittothepagewidth.
-Abilitytoprint/previewtitleforgrid.
-Abilitytoprint/previewpageheaderandpagefooterwhereyoucanspecifymacrosforcurrentpage,currentdate,currenttimeand/orstatictext.
-Automaticallyprint/previewmulti-selectedareaofTDBGridEhifit’sareaisnotempty.
-Abilitytoprint/previewrichtextbeforeandaftergrid.
TPreviewBoxcomponent
TPreviewBoxletsyoutocreateacustomizableruntimepreview.
TPrinterPreviewobject
TPrinterPreviewletsyoutorecordprintabledatainbufferforfollowingoutputthemonscreenandtoprinter.TPrinterPreviewhaveallfunctionsandpropertiesasinTPrinterobject.YoucanuseTPrinterPreviewobjectsimilarlytoTPrinterexceptsomedetails.InTPrinterPrinter.Canvas.HandleandPrinter.HandleisthesamebutinTPrinterPreviewPrinterPreview.Canvas.HandlerepresentsthemetafileinthatisrecoredthedataandPrinterPreview.HandlerepresentsPrinter.Handle.ItmeansthatyouhavetousePrinterPreview.Canvas.Handlefordrawingoperation(likeDrawText,DrawTexteEx,e.t.c.)andusePrinterPreview.Handleforsuchfunctionsasreturninginformationaboutprinterfacilities(GetDeviceCaps,e.t.c.).GlobalfunctionPrinterPreviewreturnsdefaultPrinterPreviewobjectandshowsdatainthedefaultpreviewform.
TDBEditEhcomponent
Usingeditcontrols
representsasingleormulti-lineeditcontrolthatcandisplayandeditdataoffieldinadatasetorcanworkasnondata-awareeditcontrol.
TDBDateTimeEditEhcomponent
Usingeditcontrols
representsasingle-linedateortimeeditcontrolthatcandisplayandeditdataofTDateTimefieldsindatasetorcanworkasanondata-awareeditcontrol.
TDBComboBoxEhcomponent
Usingeditcontrols
representsasingleormulti-lineeditcontrolthatcombinesaneditboxwithascrollablelistandcandisplayandeditafieldinadatasetorcanworksasnondata-awarecomboeditcontrol.
TDBNumberEditEhcomponent
Usingeditcontrols
representsasingle-linenumbereditcontrolthatcandisplayandeditanumericfieldinadatasetorcanworkasnondata-awareeditcontrol.
TPropStorageEh,TIniPropStorageManEh,TRegPropStorageManEhcomponentsUsingTPropStorageEh
Thesecomponentsrealizeatechnologyofstoringcomponentpropertiesto/fromsuchstoragesasINIfiles,Registryetc.
TMemTableEhcomponent
ItisadatasetthatholdsalldatainmemoryandcangetdatafromTDataDriverEhandreturnchangedrecordsbacktotheTDataDriverEh.
TDataDriverEhcomponent
DeliverrecordsfromtheservertotheTMemTableEh.
DeliverchangedrecordsfromTMemTableEhbacktotheserver.
TDataSetDriverEhcomponent
ItisaDataDriverthatdeliverrecordsinTMemTableEhfromotherDataSetanddeliverchangedrecordsfromTMemTableEhbacktotheDataSet.
TSQLDataDriverEhcomponent
ItisaDataDriverthathavepropertiesforkeepingfiveSQLexpressionsandparametersforqueryingdata,removing,insertions,updatingandrefreshingrecords.TSQLDataDriverEhbyitselfcan’trequestdatafromserver,butitcanprepareparametersoftherequestandhaveaglobaleventthatprogrammercanwritefortransferringSQLexpressionto/fromtheserver.
TBDEDataDriverEhcomponent
ItisaDataDriverthatinteractswiththeDBserverusingBDEconnection.
TIBXDataDriverEhcomponent
ItisaDataDriverthatinteractswiththeDBserverusingIBXconnection.
TDBXDataDriverEhcomponent
ItisaDataDriverthatinteractswiththeDBserverusingDBXconnection.
TADODataDriverEhcomponent
ItisaDataDriverthatinteractswiththeDBserverusingADOconnection.
Installation
BelowitwillbedescribedhowtoinstallEhLibunderDelphi6.
UninstallpreviousorevaluationversionofEhLibfromDelphi6IDE.
RemoveorcopythisfilestootherdirectorythisfilestopreventcrossingthisandnewversionofEhLib(IncludingEhLib.bpl,EhLib.dcp,EhLibXX.bpl,EhLibXX.dcpfiles).
Unpackingarchive
UnpackEhLibarchive.
Afterunpackingyouwillhavenextlistofdirectories:
Directoriesof'EhLib-sourceinclude'version:
BCB5
ContainsourcefileswhicharespecificforC++Builder5.
BCB6
ContainsourcefileswhicharespecificforC++Builder6.
Common
ContainsourcefileswhicharecommonforallversionsofDelphiandC++Builder.
Delphi5
ContainsourcefileswhicharespecificforDelphi5.
Delphi6
ContainsourcefileswhicharespecificforDelphi6.
Delphi7
ContainsourcefileswhicharespecificforDelphi7.
DEMOS
Demonstrationprojects.ItusetablesfromtheDEMOSdirectoryandBDEalias"DBDEMOS".
LangResources
Containresourcefilesforvariouslanguages.
DataService
Containfilesthatcontainobjectsthatallowstosortdatainvarioustypesofdatasets.
ORDERS
Containtextfilesinwhichdescribedhowtoregister variousversionsofEhLib.
HLP
Containhelpfiles.
Directoriesof'Ehlib-withoutsource'versionor'Ehlib-Evaluationversion':
BCB5
ContainallbinaryfileswhichareneedforC++Builder5.
BCB6
ContainallbinaryfileswhichareneedforC++Builder6.
Common
ContaininterfacepartofsourcefilesofEhLib.(Onlyforinformation,notrequireforinstallation.)
Delphi5
ContainallbinaryfileswhichareneedforDelphi5.
Delphi6
ContainallbinaryfileswhichareneedforDelphi6.
Delphi7
ContainallbinaryfileswhichareneedforDelphi7.
DEMOS
Demonstrationprojects.ItusetablesfromtheDEMOSdirectoryandBDEalias"DBDEMOS".
LangResources
Containresourcefilesforvariouslanguages.
DataService
Containfilesthatcontainobjectsthatallowstosortdatainvarioustypesofdatasets.
ORDERS
Containtextfilesinwhichdescribedhowtoregister variousversionsofEhLib.
HLP
Containhelpfiles.
Create,ifneed,newdirectory"EhLib"inyourDelphi_Xdirectory.(Forinstance:
C:
\Delphi6\EhLib).
IfyouhaveEhLib-sourceincludeversionthencopytothisdirectoryfilesfromCommonandDelphi6directoryofEhLibarchive.
IfyouhaveEhLib-withoutsourceversionorevaluationversionEhLibthencopytothisdirectoryfilesfrom
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- EhLib Developers guide 官方开发手册 官方 开发 手册
![提示](https://static.bingdoc.com/images/bang_tan.gif)