Hi,
Is there a way to stop floating windows from being shown on top of the main form they originate from. I understand this has to do with the owner property of the floating window, but my users do not :) Can I muck with the floating window somehow to stop this behavior? Hacky solutions are welcome...
Thanks,
Bill
Hi Bill
If you just want to stop windows from being unpinned then:
If you do want to float windows, but would like the controls under the window to move about, then that would be a real complex job beyond my knowledge.
Hope this helps
Regards, PenPal1999
i want floating windows not to appear on top of the form they were floated from. In case anyone cares i've hacked around it by clearing out the owner property of the parent form when the control is floating like this :
Form f = FindForm(); if (f != null) { f.Owner = null; }
i'm sure this will come back to haunt me somehow. I've also played around with showing the real form caption and removing the floating panel caption so it looks like a real window. Goofy stuff like this:
f.FormBorderStyle = FormBorderStyle.Sizable; f.ControlBox = true; f.MaximizeBox = true; f.MinimizeBox = true; f.SizeGripStyle = SizeGripStyle.Show; DockMananger.SetCaptionVisible(this, false);
I wouldn't recommend trying to go down this road. You might run into other problems in the future. Also, your users might find it difficult to find floating panes if they are behind the main form because they do not show in the task bar. That being said, it would be easier to modify the Form hosting the floating panes by using a derived UltraDockManager and overriding InitializeFloatingWindowContainer (this method was only added to versions 8.1 and later in a recent hotfix, so if it is not available, you will have to download the latest hotfix). The floating window is passed into the method.
Is this the only way to get a hold of the Form hosting the floating panes? I am looking to ensure that all floating panes always draw on top. Currently our application can drag multiple docked windows out into floating windows, but those windows get lost behind our main application. Is there another way to do this in NetAdv2005 vol3? Also, it would be great to get the individual floating windows to show up in the taskbar as well. Thanks!
This is the best way to get a hold of the owning Form. You might be able to get at the form in other ways. For example, you can add a draw or creation filter to your dock manager. When a FloatingWindowContainerUIElement is drawn or created, you can get its Control property and call FindForm() on that.
However, if you have a TopMost Form but the floating panes are not above it, this might be a bug (unless your top level window is not a managed Form). If your top level window is a Form, I would recommend submitting the issue to the support group: http://ko.infragistics.com/gethelp.