StartMenu Text Not Showing at Runtime

6 posts, 1 answers
  1. Patrick Barranis
    Patrick Barranis avatar
    68 posts
    Member since:
    Jul 2009

    Posted 11 Jun 2010 Link to this post

    Hello everyone,

           I'm using the Office2010 theme on my RadRibbonBar and I am trying to get the StartMenu to display text (similar to the Office 2010 "File" tab).  I have been able to find the primitives to update through the designer smart tags and the text shows up in the Visual Studio designer perfectly.  My problem is that that text does not appear when I run my application.  I have played with the text's Z-index to see if that was the problem, but I have not been able to figure it out yet.  Any suggestions?  Thanks!
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Jun 2010 Link to this post

    Hello Patrick,

    Thanks for contacting us.

    Please make sure that the following properties are set the following way:
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Text = "File";
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.ForeColor= Color.White;
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.DisplayStyle = Telerik.WinControls.DisplayStyle.Text;

    I hope this helps. Do not hesitate to write back anytime you need further assistance.

    Greetings,
    Deyan
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Patrick Barranis
    Patrick Barranis avatar
    68 posts
    Member since:
    Jul 2009

    Posted 17 Jun 2010 Link to this post

    Hi Deyan,

    That worked great; thank you!

    However, I can't figure out how to edit the font of that text.  This simple line seems to have no effect:
    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Font = New Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular); 

    I just want to match the font to the rest of my tabs fonts, just like Office 2010 does.

    Also, I'm sure this question has been asked somewhere, but if I wanted to do what Office 2010 does and show a full-screen form when someone clicks the Start Menu button, is there a tutorial somewhere on how to do that?

    TIA!
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 22 Jun 2010 Link to this post

    Hello Patrick,

    Thanks for getting back to me.

    I was not able to reproduce the issue with setting the Font property of the ApplicationButtonElement. Could you please share some further details on where exactly do you set this property so that I can make sure that I am trying to reproduce the case in the correct way?

    Currently, the RadApplicationMenu (also used in the RadRibbonBar) does not support a 'full-screen' mode as in Office 2010. However, we are going to consider this behavior and will implement it as soon as possible.

    I am looking forward to receiving the requested details.

    Thanks for your time.

    Greetings,
    Deyan
    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. Patrick Barranis
    Patrick Barranis avatar
    68 posts
    Member since:
    Jul 2009

    Posted 22 Jun 2010 Link to this post

    Hi Deyan,

    I have the following 4 lines of code in this order:
            Me.RibbonBar.RibbonBarElement.ApplicationButtonElement.DisplayStyle = Telerik.WinControls.DisplayStyle.Text 
            Me.RibbonBar.RibbonBarElement.ApplicationButtonElement.Text = "SITE 3.0" 
            Me.RibbonBar.RibbonBarElement.ApplicationButtonElement.ForeColor = Color.White 
            Me.RibbonBar.RibbonBarElement.ApplicationButtonElement.Font = New Font("Microsoft Sans Serif", 15.25F, FontStyle.Regular) 
     

    I have tried running those 4 lines in the constructor, on the Load event, and on the Shown event.  None of them seem to change the size of the font on the ApplicationButtonElement.

    Thanks,
    Patrick
  7. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 28 Jun 2010 Link to this post

    Hello Patrick,

    Thanks for getting back to me and for the further details on the case.

    I am still unable to reproduce the undesired behavior. I would therefore like to ask you to prepare a small Windows Forms application that I can use to reproduce the case and thus be able to provide you with proper assistance.

    Since you are not able to attach files in forum threads, I would also ask you to open a new support ticket on the same topic and attach the requested project there.

    Thanks for the understanding and for your time.

    Regards,
    Deyan
    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready