tooltip

Integrate tooltips with CHM help in Windows app

纵然是瞬间 提交于 2019-12-13 16:02:54
问题 We're trying to redesign our documentation process for a Windows desktop application, and two of the requirements we have are Provide 'reference' help in a CHM format Provide tooltip help on individual controls Currently our tooltips are hard-coded into the Delphi/C++Builder forms, but I'd ideally like to avoid the duplication, and have the CHM file as the 'master' How can we display the Help information in the CHM file as tooltips when the user positions the mouse over certain controls? 来源:

using react tooltip with styled components

不羁岁月 提交于 2019-12-13 14:22:32
问题 anyone got any experience using react-tooltip with styled-components ? I tried to wrap my tooltip inside a styled component but they styles weren't fully showing I wanted a yellow background but got a yellow background with a massive black border I also want to place the tooltip directly over the top of where I hover, can anyone show me how to do this if possible? code: <div> <ReactTooltip className="extraClass" effect="solid"> {'I shall be the text and this is where I will go'} <

Displaying tooltips in PyQT for a QTreeView item

廉价感情. 提交于 2019-12-13 14:11:09
问题 I have followed some useful online tutorials by Yasin Uludag to experiment with PyQt (or rather PySide) to create a simple tree view, but I'm having problems with getting tooltips to work. In the following code, the tooltip text is displayed on the console rather than in a tooltip window. All the other examples I have seen use setToolTip directly on the widget item, but I don't think I have direct access to that in this Model/View approach. Is there some initialization I need to do on the

How to add tooltip to image on hover with CSS

微笑、不失礼 提交于 2019-12-13 13:52:05
问题 I have three images, on hover they increase in size using :hover in css. When a user hovers over the image I'd also like a tooltip to appear with a description of the image (I should also be able to position the tooltip). HTML <div class="bottle-container"> <div class="click-to-top"><img src="image-1.png" alt="Image 1" />Tooltip text</div> <div class="click-to-top" style="z-index:5;"><img src="image-2.png" alt="Image 2" /></div> <div class="click-to-top last"><img src="image-3.png" alt="Image

QTooltip for QActions in QMenu

半世苍凉 提交于 2019-12-13 11:57:30
问题 I want to be able to show ToolTips for QMenu items ( QAction s). The best I have achieved is to connect the hovered signal of the QAction to a QTooltip show: connect(action, &QAction::hovered, [=]{ QToolTip::showText(QCursor::pos(), text, this); }); The problem is that sometimes the program will position the tooltip below the menu, specially when changing menus. Is there any way to force the tooltip to show on top? 回答1: You can subclass QMenu and reimplementing QMenu::event() to intercept the

How to show an image in a tool-tip on hovering over another image using CSS only?

不羁岁月 提交于 2019-12-13 11:15:22
问题 I've a set of three horizontal images. Now I've to show the tool-tip image for each of these images when user hovers his/her mouse cursor on any othe three images. The issue is in every tool-tip I want to show an image. I've to achieve this thing through CSS only. No more jQuery and other stuff. Can someone please help me in this regard please? Following is the HTML of the set of three horizontal images. <table style="width:100%" id="thumbs"> <tr> <td><span style="cursor:pointer" ><img id=

removing tooltip

与世无争的帅哥 提交于 2019-12-13 08:01:31
问题 Is there a way to disable the default tooltip that shows up in a browser when hovering over an image? This is without removing the title or alt tags. Another option, can the tooltip be made to show a specific text for certain image types (such as JPG) and another text for a different image type (such as PNG)? 回答1: The title attribute is used as hover text in most browsers by default. The only way I could see removing them is to remove the title attribute. JavaScript would be capable of doing

How to add an image to tool tip using javascript?

 ̄綄美尐妖づ 提交于 2019-12-13 07:44:07
问题 How can I show an image as a tool tip in my web page. I want my tool tip in a custom image, rather than the usual one. I tried defining a class to hold the image and added the class to the anchor element, but I did not get the image. Someone help me. My css: .bubbleText{ background:transparent url(../images/static/link_hover_M_120.png) no-repeat; } .questionIcon{ background: url(../images/static/question2.png) no-repeat; text-decoration:none; } My html code: <a title="Your Contact number"

jQuery Tooltip Script

怎甘沉沦 提交于 2019-12-13 07:41:26
问题 I am looking for a straightforward jQuery tooltip script. I have been having troubles finding one that has a fixed position and doesn't move with the user's cursor. If anyone knows of one let me know :) Thanks! 回答1: I always use this one here: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ It has the option to both follow the cursor AND keep it's position, along with a few other helpful options. The css is also very minimal and therfore easy to change. 回答2: See there's this thing

How to get the text within a span in a tooltip via jQuery?

≡放荡痞女 提交于 2019-12-13 07:00:01
问题 I am trying to get the text within a span to be the 'content' of a tooltip using the Tooltipster jQuery plugin. A description of the available parameters for the 'content' option can be seen here: http://calebjacob.com/tooltipster/#options JQuery <script type="text/javascript"> $(document).ready(function() { $('.tooltip').tooltipster({ content: $(this).parent().text() // trying to get the span text here }); }); </script> HTML <p>Here is some text, and here is <span class="tooltip" data-rlink=