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

Right-Click menu on floating dock

6 Answers 263 Views
Dock
This is a migrated thread and some comments may be shown as answers.
johns
Top achievements
Rank 1
johns asked on 30 Aug 2007, 03:57 AM
How would one override the context menu when you right click on the top caption bar of a floating dock window.

6 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 30 Aug 2007, 02:36 PM
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
0
Stefan
Top achievements
Rank 1
answered on 22 Apr 2010, 04:21 PM
Hi,

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

Thank you.
Stefan
0
Nikolay
Telerik team
answered on 28 Apr 2010, 02:24 PM
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.
0
Adrian
Top achievements
Rank 2
answered on 29 Apr 2010, 08:01 AM
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
0
Nikolay
Telerik team
answered on 10 May 2010, 04:39 PM
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.
0
Adrian
Top achievements
Rank 2
answered on 11 May 2010, 08:58 AM
Hi Nikolay,

it works like a charme. Thank you!!!

All the best.

Adrian
Tags
Dock
Asked by
johns
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Stefan
Top achievements
Rank 1
Nikolay
Telerik team
Adrian
Top achievements
Rank 2
Share this question
or