Bug Report DB36905
Visible to All Users

SetToolTip not working on all controls

created 19 years ago

I am trying to use SetToolTip through the tooltip controller to dynamically set tooltips on my forms' controls. However, it is not setting most of the tooltips correctly. It seems to set the tooltips for objects such as the panels and the LayoutControl, but for things like TextEdit, ComboBoxEdit, CheckEdit, etc. it's not working. I have attached a sample project which demonstrates this.
Steps to Reproduce:
Run the attached project. Notice that a tooltip shows up when the mouse hovers over the LayoutControl, but not over any other controls on the form.
Actual Results:
A tooltip shows up when the mouse hovers over the LayoutControl, but not over any other controls on the form.
Expected Results:
Tooltips should show up for all controls which have had a tooltip assigned through SetToolTip.

Comments (1)
DevExpress Support Team 19 years ago

    The editors require a different approach for the tooltip initialization. Please try to use the following code:

    Visual Basic
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.txtDX.ToolTip = "TextBox" Me.cboDX.ToolTip = "ComboBox" Me.chkDX.ToolTip = "CheckBox" Me.DefaultToolTipController.SetToolTip(Me.LayoutControl1, "LayoutControl1") End Sub

    Thank you,
    Nick

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.