Right-Click menu on floating dock

7 posts, 0 answers
  1. johns
    johns avatar
    20 posts
    Member since:
    Jul 2007

    Posted 29 Aug 2007 Link to this post

    How would one override the context menu when you right click on the top caption bar of a floating dock window.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 30 Aug 2007 Link to this post

    Hi John,

    Currently this feature is not supported. We are not able to supply with a workaround either. Our plans are to have this feature in the Q3 release, due later this year. We are sorry for not being able to help you at this time.
     

    Greetings,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Stefan avatar
    10 posts
    Member since:
    Feb 2009

    Posted 22 Apr 2010 Link to this post

    Hi,

    has this issue been fixed in the current release? Or is there another workaround for it?

    Thank you.
    Stefan
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 28 Apr 2010 Link to this post

    Hi Stefan,

    Yes, we introduced a way to override the context menu invoked by right-clicking the titlebar of a FloatingWindow. Please refer to the following article for additional information: Using the ContextMenuService.

    Write back if you have further questions.

    Kind regards,
    Nikolay
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  6. Adrian
    Adrian avatar
    14 posts
    Member since:
    Apr 2010

    Posted 29 Apr 2010 Link to this post

    Hi Nicolay.

    I think you did not get exactly what the problem is. Your link describes how to change the context menu behavior on tabs from windows currently docked to the RadDock control with the status: "Tabbed Document".
    If you undock meaning Float a window from RadDock you have a complete new Window opened with a complete new Context Menu.

    The context menu looks like the attached screenshot "floatwindow_contextmenu.png".

    What i want to change is the context menu of the undocked float window and in addition it would be nice to change the behavior to allow:
    maximize button, minimize button and disable the "X" close button of the floated window.

    Best regards.

    Adrian
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 10 May 2010 Link to this post

    Hello Adrian,

    The article that I have given demonstrates just one of the possible scenarios where ContextMenuService can be of help. Please note that this service is responsible for showing the context menu of the FloatingWindow's titlebar as well. When you take the ContextMenuService instance and handle the ContextMenuDisplaying event, you will notice that this event will be fired when needed.

    As to the buttons of the FloatingWindow, all you need to do is handle the DockStateChanged event and change the FormBorderStyle of the e.DockWindow.FloatingParent.

    Please refer to the attached sample project where the approaches are demonstrated.

    Greetings,
    Nikolay
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  8. Adrian
    Adrian avatar
    14 posts
    Member since:
    Apr 2010

    Posted 11 May 2010 Link to this post

    Hi Nikolay,

    it works like a charme. Thank you!!!

    All the best.

    Adrian
Back to Top
UI for WinForms is Visual Studio 2017 Ready