RadButton ButtonElement and Screen Tip

3 posts, 0 answers
  1. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Jul 2009 Link to this post

    Hi,

    I was wondering why the ButtonElement of the RadButton is not available through the designer. I see that rootElement is, but if I add a screen tip to that, then the screen tip doesn't show, which is quite confusing.

    I've had to add a shared method to our controls project to allow us to add screen tips to buttons like so..
     
     
        Public Shared Sub AddScreenTip(ByVal button As RadButton, ByVal headerText As StringByVal bodyText As String)  
            If Not button.ButtonElement.ScreenTip Is Nothing Then 
                button.ButtonElement.ScreenTip.Items.Clear()  
            End If 
            Dim Tip As New RadOffice2007ScreenTipElement()  
            Tip.CaptionLabel.Text = headerText  
            Tip.MainTextLabel.Text = bodyText  
            button.ButtonElement.ScreenTip = Tip  
        End Sub 
     
     

    It seems strange to have to add screen tips this way. Could a Screen Tip interface be added to the RadButton at it's root level please?
    Thanks

    Richard
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 24 Jul 2009 Link to this post

    Hi Richard Slade,

    Thank you for writing. Actually, you can set screen tip in the designer by accessing RadButtonElement through Edit UI elements item in the smart tag of the RadButton. Nevertheless, we will consider to make an easier way about adding the screen tip to the RadButton. I have updated your Telerik points for bringing our attention to this. Write me back if you have other questions. 

    All the best,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 24 Jul 2009 Link to this post

    OK, thanks for your reply.
    Richard
Back to Top