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

RadTitleBar Configuration

7 Answers 242 Views
TitleBar
This is a migrated thread and some comments may be shown as answers.
Sperduti
Top achievements
Rank 1
Sperduti asked on 10 Dec 2007, 02:09 PM
I place in my form an RadTitleBar.

I have two questions.

First, when I do right-click on the title bar, I see a context menu in English language. How can I do to see it in French ?

Second, how can I connect event when I click on an element of the titlebar context menu ?

Best regards,

YSP

7 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Dec 2007, 12:56 PM
Hello Sperduti,

Thank you for writing.

You must change the menu text manually. The context menu can be accessed through the ContextMenu property of RadTitleBar. Refer to the following code:

this.radTitleBar1.ContextMenu.MenuItems[0].Text = "My Item Name"

In order to attach an event to some context menu item use this code:

this.radTitleBar1.ContextMenu.MenuItems[0].Click += new EventHandler(item_Click); 
void item_Click(object sender, EventArgs e) 
    MessageBox.Show("Item clicked"); 
 

Don't hesitate to contact us if you have other questions.
 

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sperduti
Top achievements
Rank 1
answered on 11 Dec 2007, 02:29 PM
Thanks,
YSP
0
Claude IMBERT
Top achievements
Rank 1
answered on 14 Apr 2010, 01:59 PM
Hi,

In the RadTitleBar,
I want to change the actual context menu with an RadContextMenu. How can I do that?

Regards
0
Nikolay
Telerik team
answered on 16 Apr 2010, 04:04 PM
Hello Claude IMBERT,

Thank you for the question.

If you are interested in the RadTitleBar control, you can easily show a RadConextMenu on it by using RadContextMenuManager. For additional information about this approach, please refer to this article.
In addition to the steps provided in the article, you need to set the ContextMenu property of RadTitleBar to null.

If your question, however, concerns RadTitleBar in RadForm, the approach is a bit different. You need to extend the RadForm class by overriding WndProc and showing RadConextMenu if the message is
WM_NCRBUTTONUP. I am attaching a sample project to demonstrate this approach.

If you have additional questions, feel free to contact me.

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
Claude IMBERT
Top achievements
Rank 1
answered on 20 Apr 2010, 09:15 AM
Hi Telerik Team,

Thanks for your solution, It helped me a lot.

But I have still a question :
When I minimize my application, I see the context menu in English and I want it in French.
You can see my problem in the attachment.

Regards
0
Nikolay
Telerik team
answered on 22 Apr 2010, 01:13 PM
Hi Claude IMBERT,

Thank you for getting back to me.

You can replace the default context menu of the Operating System, by extending RadForm and overriding the WndProc method. If the message is WM_POPUPSYSTEMMENU, you should create and show your own conext menu. This is demonstrated in the attached sample project.

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
Claude IMBERT
Top achievements
Rank 1
answered on 22 Apr 2010, 02:47 PM
Hi

Thanks a lot for your help, it is completely solving my problem.

Regards
Tags
TitleBar
Asked by
Sperduti
Top achievements
Rank 1
Answers by
Jack
Telerik team
Sperduti
Top achievements
Rank 1
Claude IMBERT
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or