mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:19:18 +02:00
added menu component editor from Olivier
git-svn-id: trunk@3996 -
This commit is contained in:
parent
ea9a0852aa
commit
7c154dbb4e
@ -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;
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user