Onmouseover execute tooltip Control

Source: Internet
Author: User

The tooltip control is a simple but useful control. It can provide very beautiful prompts for our software, improve the availability of the software, and give users a better experience. Suppose there are now two buttons, one for previewing the hanging line series, and the other for previewing the line conversion. To keep the button text concise and limited by the button size. We cannot clearly express the main functions of this button through the text attribute. In this case, we can use the tooltip control.

First, add a tooltip control in the form where the button is located, and set the ID to ttmsg. in this case, you can add a tooltip attribute named ttmsg to the attribute boxes of almost all controls in the current form.

 

 

We can enter some prompt information. When you run the program, move the mouse over the current control (if this control is available), a very beautiful prompt box will show the information we entered on the tooltip property of the control.


If you think this prompt is not good, or the color is not good. These are all well solved. We can achieve these effects by changing the ttmsg attributes.

Tooltip has many attributes and is most commonly used. Backcolor, forecolor, isballoon, and tooltiptitle.

Backcolor allows us to change the background color of the prompt box, for example, changing the light yellow to light green.

 

 

Forecolor can change the font color, if you change the black to red.

 

 

Isballon can change the style of the prompt box. isballon is of the bool type, which is false by default. It appears in a square shape. When it is set to true, it will appear in the form of cloud.

 

 

Tooltiptile is used to add a title to the prompt information.

 

 

Tooltip also has many attributes to change it, and we can even extend it. In my project, we only use the above several items. We can change them further as needed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.