mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 13:29:47 +02:00
fixed menu attaching from Micha
git-svn-id: trunk@4324 -
This commit is contained in:
parent
5a1d4d5b15
commit
7dd5932806
@ -360,6 +360,7 @@ Var
|
|||||||
TBB: TBBUTTON;
|
TBB: TBBUTTON;
|
||||||
WindowStyle: Integer; //used by LM_SETTABPOSITION
|
WindowStyle: Integer; //used by LM_SETTABPOSITION
|
||||||
OldPageIndex: Integer; //used by LM_SETITEMINDEX of a csNotebook
|
OldPageIndex: Integer; //used by LM_SETITEMINDEX of a csNotebook
|
||||||
|
AMenu: TMenu;
|
||||||
Begin
|
Begin
|
||||||
Result := 0; //default value just in case nothing sets it
|
Result := 0; //default value just in case nothing sets it
|
||||||
Assert(False, 'Trace:IntSendMessage3 - Start, Received (' + GetMessageName(LM_Message) + ')');
|
Assert(False, 'Trace:IntSendMessage3 - Start, Received (' + GetMessageName(LM_Message) + ')');
|
||||||
@ -538,7 +539,10 @@ Begin
|
|||||||
{ not assigned when this the menuitem of a TMenu; handle is destroyed above }
|
{ not assigned when this the menuitem of a TMenu; handle is destroyed above }
|
||||||
if Assigned(TMenuItem(Sender).Parent) then
|
if Assigned(TMenuItem(Sender).Parent) then
|
||||||
DeleteMenu((Sender as TMenuItem).Parent.Handle, TMenuItem(Sender).Command, MF_BYCOMMAND);
|
DeleteMenu((Sender as TMenuItem).Parent.Handle, TMenuItem(Sender).Command, MF_BYCOMMAND);
|
||||||
DrawMenuBar(((Sender as TMenuItem).Owner as TWinControl).Handle);
|
AMenu:=TMenuItem(Sender).GetParentMenu;
|
||||||
|
if (AMenu<>nil) and (AMenu.Parent<>nil)
|
||||||
|
and (AMenu.Parent is TCustomForm) then
|
||||||
|
DrawMenuBar(TCustomForm(AMenu.Parent).Handle);
|
||||||
End
|
End
|
||||||
Else
|
Else
|
||||||
Assert(False, Format('Trace:I don''t know how to destroy component %S', [Sender.ClassName]));
|
Assert(False, Format('Trace:I don''t know how to destroy component %S', [Sender.ClassName]));
|
||||||
@ -2660,6 +2664,9 @@ End;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.59 2003/06/26 14:46:24 mattias
|
||||||
|
fixed menu attaching from Micha
|
||||||
|
|
||||||
Revision 1.58 2003/06/26 14:24:50 mattias
|
Revision 1.58 2003/06/26 14:24:50 mattias
|
||||||
fixed progressbar SET_PROPERTIES from Micha
|
fixed progressbar SET_PROPERTIES from Micha
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user