added menu component editor from Olivier

git-svn-id: trunk@3996 -
This commit is contained in:
mattias 2003-04-01 23:35:28 +00:00
parent ea9a0852aa
commit 7c154dbb4e
3 changed files with 7 additions and 4 deletions

View File

@ -399,6 +399,7 @@ var
end; end;
begin begin
Continue:=false;
if not Assigned(FFirst) if not Assigned(FFirst)
and (Prop is TMethodPropertyEditor) then and (Prop is TMethodPropertyEditor) then
FFirst := Prop; FFirst := Prop;

View File

@ -1916,8 +1916,9 @@ var
begin begin
if (Count=0) or (FCustomForm=nil) if (Count=0) or (FCustomForm=nil)
or IsSelected(FCustomForm) then exit; or IsSelected(FCustomForm)
or (Items[0].Component is TMenuItem) then exit;
Diff:=DC.FormOrigin; Diff:=DC.FormOrigin;
{writeln('[DrawGrabbers] ' {writeln('[DrawGrabbers] '
@ -1976,7 +1977,8 @@ begin
if (Count<2) if (Count<2)
or (FCustomForm=nil) or (FCustomForm=nil)
or (AComponent.Owner<>DC.Form) or (AComponent.Owner<>DC.Form)
or (not IsSelected(AComponent)) then exit; or (not IsSelected(AComponent))
or (AComponent is TMenuItem) then exit;
GetComponentBounds(AComponent,CompLeft,CompTop,CompWidth,CompHeight); GetComponentBounds(AComponent,CompLeft,CompTop,CompWidth,CompHeight);
CompOrigin:=GetParentFormRelativeParentClientOrigin(AComponent); CompOrigin:=GetParentFormRelativeParentClientOrigin(AComponent);

View File

@ -35,7 +35,7 @@ uses
Forms, SysUtils, Buttons, Classes, Graphics, GraphType, StdCtrls, LCLType, Forms, SysUtils, Buttons, Classes, Graphics, GraphType, StdCtrls, LCLType,
LCLLinux, LMessages, Controls, ComCtrls, ExtCtrls, TypInfo, Messages, LCLLinux, LMessages, Controls, ComCtrls, ExtCtrls, TypInfo, Messages,
LResources, Laz_XMLCfg, Menus, Dialogs, ObjInspStrConsts, LResources, Laz_XMLCfg, Menus, Dialogs, ObjInspStrConsts,
PropEdits, GraphPropEdits, ListViewPropEdit,ImageListEditor; PropEdits, GraphPropEdits, ListViewPropEdit, ImageListEditor;
type type