MDI Options

9 posts, 0 answers
  1. Yoni
    Yoni avatar
    10 posts
    Member since:
    Feb 2013

    Posted 09 Jul 2013 Link to this post

    Hello,

    I need to develop MDI based application, I wish to make the RadDock interface to works like VS2010:
    I want to have a single main Documents Tab Area and two view tool windows:
    1) How can I make the RadDock to have only single tab documents area? I do no want to allow the user to create another tab documents areas (by dragging) - exactly like in VS2010 - there is only one tab documents area at all times
    2) I also wish to allow the user to drag the documents as a float windows but without been able to re-dock it to other areas then the main  tab documents area

    Thank you!
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 11 Jul 2013 Link to this post

    Hi Yoni,

    Thank you for writing.

    I have attached an example project where I have tried to implement your requirements. It has one document container and two tool windows. The tool windows can be docked to the four sides of the screen or float. The documents can be either docked in the document container or float.

    I hope this will be useful. Should you have further questions, I would be glad to help.
     
    Regards,
    Ivan Petrov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Yoni
    Yoni avatar
    10 posts
    Member since:
    Feb 2013

    Posted 17 Jul 2013 Link to this post

    Thanks for the replay - there are few problems with the sample:

    1) The option of drag the documents as a float windows (but without been able to re-dock it to other areas then the main tab documents area) is not working..
    2) I wish both of the tools windows to be on the right side one on the top right side and the other on the bottom right side (like in VS). I also need to allow the user to drag the tools windows on on top of another if is wishes to create tabbed tools window space (also like VS allows)

    Thank you for your help!
  5. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 22 Jul 2013 Link to this post

    Hello Yoni,

    Thank you for writing back.

    1. Currently to make a Document window floating you should right-click on it and from the context menu choose Floating.

    2. I have attached a modified version of the example I sent you where I have modified the code a bit so tool windows can be docked as you have described.

    I hope this will help. Should you need further assistance, I would be glad to provide it.

    Regards,
    Ivan Petrov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Yoni
    Yoni avatar
    10 posts
    Member since:
    Feb 2013

    Posted 20 Aug 2013 Link to this post

    I noticed when taking your last example and set the "SingleScreen" property of the "radDock1" to false the forms can be float using drag..
    Can I use this option? Are there any "side  effects" can be caused by setting the SingleScreen=false ?

    Thank you!
  7. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 22 Aug 2013 Link to this post

    Hi Yoni,

    Thank you for writing back.

    The SingleScreen property defines whether the dock would work only in the main screen. This is applicable to PC setups where the desktop is extended to more than one monitor. If you set the property to false you will be able to dock windows on the extended monitors. If you set it to true (which is the default value) you will not be able to dock windows on any of the additional monitors.

    I hope this clears things up. Feel free to write back with further questions.

    Regards,
    Ivan Petrov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Fernando
    Fernando avatar
    6 posts
    Member since:
    Nov 2011

    Posted 30 Oct 2014 in reply to Ivan Petrov Link to this post

    Hi Ivan, is there any way to dock a mdi form to the right of the previous mdi form?
    Thanks in advance
  9. Fernando
    Fernando avatar
    6 posts
    Member since:
    Nov 2011

    Posted 04 Nov 2014 Link to this post

    This works for me.
    Thanks anyway.

    'Inserts forms right side of the last inserted
    Me.RadDock1.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.ToBack
  10. Dimitar
    Admin
    Dimitar avatar
    1414 posts

    Posted 04 Nov 2014 Link to this post

    Hello Fernanado,

    Thank you for writing.

    This is the correct approach for this case. Information about this property can be found here: Document Manager.

    Do not hesitate to contact us if you have other questions.

    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready