This is a migrated thread and some comments may be shown as answers.

Open floating Window

1 Answer 221 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 27 Nov 2015, 11:46 AM

Hi,

Is it possible to add a floating window to RadDock without docking the form as first step. I am using the following code:

      Dim h As HostWindow = RadDock.DockControl(New MyForm(), DockPosition.Fill, DockType.Document)

      h.DefaultFloatingSize = New Size(800, 600)
      h.DockState = DockState.Floating

      h.Select()

The problem is, that this causes a lot of flickering and rearranging of the existing docked windows.

When added with Dockposition.Fill the new window will get focus. When floated the window in focus when the operation started may be hidden behind another window. Selecting the original window causes flickering between windows.

/Brian 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Dec 2015, 03:00 PM
Hello Brian,

Thank you for writing.

Please have a look at the following code snippet demonstrating how to float directly a HostWindow:
Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
    Dim f As New Form()
    Dim h As HostWindow = New HostWindow(f)
    h.DefaultFloatingSize = New Size(800, 600)
    f.Visible = False
    RadDock1.FloatWindow(h)
End Sub

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Dock
Asked by
Brian
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or