Displaying tooltip on mouse hover of a text

前端 未结 9 1029
盖世英雄少女心
盖世英雄少女心 2020-11-29 07:22

I want to display a tooltip when the mouse hovers over a link in my custom rich edit control. Consider the following text:

We all sleep

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 07:58

    For the sake of ease of use and understandability.

    You can simply put a Tooltip anywhere on your form (from toolbox). You will then be given an options in the Properties of everything else in your form to determine what is displayed in that Tooltip (it reads something like "ToolTip on toolTip1"). Anytime you hover on an object, the text in that property will be displayed as a tooltip.

    This does not cover custom on-the-fly tooltips like the original question is asking for. But I am leaving this here for others that do not need

提交回复
热议问题