jvcllaz: Add component editor for TJvXPBar. Add ImageIndex property editor for TJvXPBarItem.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5413 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-12-04 22:43:34 +00:00
parent 5f6ac82f68
commit c2391e60b5
5 changed files with 48 additions and 18 deletions

View File

@ -11,7 +11,7 @@
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="..\resource"/>
<OtherUnitFiles Value="..\run"/>
<OtherUnitFiles Value="..\run;..\design"/>
<UnitOutputDirectory Value="..\lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
@ -24,7 +24,7 @@
"/>
<License Value="The JVCL is released in accordance with the MPL 1.1 license. To get your own copy or read it, go to http://www.mozilla.org/MPL/MPL-1.1.html. "/>
<Version Major="1" Release="1"/>
<Files Count="7">
<Files Count="8">
<Item1>
<Filename Value="..\run\JvXPCoreUtils.pas"/>
<UnitName Value="JvXPCoreUtils"/>
@ -54,18 +54,25 @@
<HasRegisterProc Value="True"/>
<UnitName Value="JvXPCtrlsReg"/>
</Item7>
<Item8>
<Filename Value="..\design\JvXPPropertyEditors.pas"/>
<UnitName Value="JvXPPropertyEditors"/>
</Item8>
</Files>
<RequiredPkgs Count="3">
<RequiredPkgs Count="4">
<Item1>
<PackageName Value="JvCoreLaz"/>
<PackageName Value="IDEIntf"/>
</Item1>
<Item2>
<PackageName Value="LCL"/>
<PackageName Value="JvCoreLaz"/>
</Item2>
<Item3>
<PackageName Value="LCL"/>
</Item3>
<Item4>
<PackageName Value="FCL"/>
<MinVersion Major="1" Valid="True"/>
</Item3>
</Item4>
</RequiredPkgs>
<UsageOptions>
<UnitPath Value="$(PkgOutDir)"/>

View File

@ -9,7 +9,7 @@ interface
uses
JvXPCoreUtils, JvXPBar, JvXPCore, JvXPContainer, JvXPButtons,
JvXPCheckCtrls, JvXPCtrlsReg, LazarusPackageIntf;
JvXPCheckCtrls, JvXPCtrlsReg, JvXPPropertyEditors, LazarusPackageIntf;
implementation

View File

@ -12,7 +12,9 @@ procedure Register;
implementation
uses
JvXPCore, JvXPBar, JvXPContainer, JvXPButtons, JvXPCheckCtrls;
ComponentEditors, PropEdits, GraphPropEdits, ImgList,
JvXPCore, JvXPPropertyEditors,
JvXPBar, JvXPContainer, JvXPButtons, JvXPCheckCtrls;
procedure Register;
begin
@ -24,6 +26,16 @@ begin
TJvXPCheckbox,
TJvXPStyleManager
]);
{
RegisterPropertyEditor(TypeInfo(TImageIndex), TJvXPBarItem, 'ImageIndex',
TJvXPItemImageIndexProperty);
}
RegisterPropertyEditor(TypeInfo(TImageIndex), TJvXPBarItem, 'ImageIndex',
TImageIndexPropertyEditor);
RegisterComponentEditor(TJvXPBar, TJvXPBarItemEditor);
end;
initialization