<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 23.12.2015 08:54, taazz wrote:<br>
</div>
<blockquote cite="mid:567A533F.5090808@evosi.eu" type="cite">
<blockquote type="cite" style="color: #000000;">I know that Delphi
behaves the same but then we need some FormStyle that makes the
window stay only on top of its application windows and not
system-wide.
<br>
<br>
</blockquote>
<br>
No it does not, delphi's 2007 menu designer never stays on top
outside the application it self and never looses its position
regardless of how many times you change between delphi and other
applications.
<br>
</blockquote>
<br>
I was talking about FormStyle=fsStayOnTop and not about delphi's
2007 menu designer. fsStayOnTop in Delphi behaves the same as in
Lazarus - it tries to keep the form above all forms system-wide.<br>
<br>
<div class="moz-cite-prefix">On 23.12.2015 08:54, taazz wrote:<br>
</div>
<blockquote cite="mid:567A533F.5090808@evosi.eu" type="cite">
<blockquote type="cite" style="color: #000000;">E.g. I am writing
now this email. I open Menu designer in Lazarus and then switch
back to my email program - the email program is covered by the
menu designer from Lazarus, which is absolutely not OK in my
eyes.
<br>
<br>
Bad :( The PopupMode should solve the problem. </blockquote>
No, pmauto will autoselect the applications main form as
popupparent you need to set the formdesigner as the popupparrent
for all the component designers (menu, stringgrid, collections
etc). This way double clicking an event will hide the designers
which will be back on top when you focus the form designer. <br>
</blockquote>
<br>
No, you are wrong. pmAuto selects the active form as PopupParent not
application's main form. See<br>
<br>
<tt> TPopupMode = (</tt><tt><br>
</tt><tt> pmNone, // default behavior - popup to
mainform/taskbar window</tt><tt><br>
</tt><tt> pmAuto, </tt><tt><b>// popup to active form and
same as pmNone if no active form</b></tt><tt><br>
</tt><tt> pmExplicit // popup to PopupParent and same as pmNone
if not exists</tt><tt><br>
</tt><tt> );</tt><tt><br>
</tt><br>
or the widgetset code, e.g. for Qt:<br>
<br>
<tt>procedure TQtMainWindow.UpdateParent;<br>
var<br>
NewParent: QWidgetH;<br>
begin<br>
NewParent := nil;<br>
case FPopupMode of<br>
pmNone: ;// no popup parent<br>
pmAuto:<br>
// active form is parent<br>
if Screen.ActiveForm <> nil then<br>
NewParent := TQtWidget(Screen.ActiveForm.Handle).Widget;<br>
</tt><tt>//...</tt><tt><br>
</tt><br>
<div class="moz-cite-prefix">On 23.12.2015 08:54, taazz wrote:<br>
</div>
<blockquote cite="mid:567A533F.5090808@evosi.eu" type="cite">
<blockquote type="cite" style="color: #000000;">On Win32 it works
well with PopupMode=pmAuto. On my testing Linux/Gtk2 system it
works the same with pmNode and pmAuto - it correctly shows the
"Checkmark and radioitem properties" dialog above Menu designer.
<br>
What OS/WS are you seeing the problem?
<br>
<br>
</blockquote>
Yes and no depends heavily which is the main form and how it
changes between versions. <br>
<br>
</blockquote>
<br>
Again, you are wrong. pmAuto doesn't have anything to do with the
main form.<br>
<br>
Ondrej<br>
<br>
</body>
</html>