I'm using the WinDockManager along with the ToolbarManager.We want to have one of the docked controls to have the ability to go full screen. I'd already implemented this by creating a new form that was full screen and setting the control's parent to be this new form. When returning from full screen I just moved the control back.
I've now discovered a problem with displaying contextMenus whilst in full screen mode. I'm using the SetContextMenuUltra method to link the context menu, all works fine until the control is made full-screen, at which point they stop being displayed. It looks like the context menu is being created, but that it's underneath the control. I've tried setting the TopMost property on my fullScreenForm to be false and this hasn't helped. I'm guessing this is because the ToolBarManager is in my original form and it can't show popups for controls in another form, does that sound like a likely cause?
So what I was wondering (hoping) was whether there would be a better way to make a control go full-screen without removing it from the form. It would be nice if the WinDockManager supported a method to make any control fullscreen...
I realise that this is probably not possible, any tips grealt received though.
fullScreenForm = new Form();fullScreenForm.WindowState = FormWindowState.Maximized;fullScreenForm.FormBorderStyle = FormBorderStyle.FixedToolWindow;fullScreenForm.ControlBox = false;fullScreenForm.ShowInTaskbar = false;fullScreenForm.TopMost = false;SuspendLayout();control.Parent = fullScreenForm;fullScreenForm.Bounds = screen.Bounds;fullScreenForm.Show();ResumeLayout();
I can't think of a better way to make the pane go full screen. The only thing I can suggest is that you set the Owner of the full screen form to the main form. If that doesn't work, it could be a bug and you can submit it to the support group to have it investigated further: http://es.infragistics.com/gethelp.
Mike,
I tried that but it still didn't work. I've now got a workaround, where I do't use SetContextMenuUltra for this control, instead I use ShowPopup overload where I can specify an owner control for the popup. To trigger showing the popup I created a ContextMenu for the control (standard windows one) and hooked into the popup event on it.
I did take a look at the infragistics source code and it looks like SetContextMenuUltra does something kind of similar under the covers, but it never calls ShowPopup with the overload to specify the owner. I guess this could be considered a bug, but to be honest I'm happy with my workaround.