tooltip

Is it possible to format Tooltip-Text (bold, underline… etc)?

▼魔方 西西 提交于 2019-12-19 04:01:55
问题 I want to make some passages of a standard tooltip bold in a WinForms application. Is this possible? If not, is there a (free) tooltip component that allows me to style them (preferably also border and background)? Thanks! 回答1: You can use this type : Balloon tool tip. This let you have some bold title and some color option. You might be able to modify the source to get underline, italic and bold inside the message. Update: You can modify the drawing of the ToolTip (and the FONT object of the

How can I display a tooltip showing the value of a trackbar in WinForms

江枫思渺然 提交于 2019-12-19 03:21:12
问题 I'm new to C# and WinForms so please excuse me is this is a bit of a newbie question. I'm trying to add a tooltip to my TrackBar control which shows the current value of the bar as you drag it. I've instantiated a ToolTip object and tried the following handler code but it doesn't show any tooltip: private void trackBar1_Scroll(object sender, EventArgs e) { toolTip1.SetToolTip(trackBar1, trackBar1.Value.ToString()); } 回答1: Adam I've just implemented a very simple version of this and it works

Highcharts + Plotband tooltip hover + default styling

这一生的挚爱 提交于 2019-12-19 03:14:09
问题 I'm trying to find the easiest way to have a tooltip show up when you hover over a plotband. The events part is fine, I can access mouseover and out but I need to find a way to display a tooltip in the same style as the default look and feel for Highcharts. Here's a quick example. I need the text "Show me on hover in a tooltip" to display as a tooltip styled the same as Highcharts default somewhere based on the mouse coordinates? I've had a look at the docs and couldn't find any help. Any

How to tweak my tooltips in wxpython?

会有一股神秘感。 提交于 2019-12-19 02:52:07
问题 I was trying to add a tooltip to show the full content of a truncated ObjectListView, until it turned out it had such a feature built-in: I tried making my own tool tips using wx.TipWindow, wx.PopupWindow and SuperToolTip, but none of them looked as 'native' as this one. While I'm aware of this wiki article that supposedly enables the tooltip for truncated wx.Listrctrls, I didn't really understand how to get it working. I also expect that it only works when something is truncated, whereas I'd

Tooltip on anchor's title not shown in IE9

戏子无情 提交于 2019-12-19 01:25:28
问题 Has something was changed in the way IE9 treats the title attribute in an anchor tag? I try to use a regular anchor, such as - <a href="http://www.somelink.com" title="Some title here">This is a link</a> A tooltip should be with the title is expected to appear, and it does appear in previous versions of IE and also in other browsers, but not on IE9. Is there a know issue with that? I tried to search the web for that, but found nothing about this. Any ideas? Thanks 回答1: The code for the href

How to use Windows ToolTip Control without bounding to a tool

淺唱寂寞╮ 提交于 2019-12-18 21:27:25
问题 I want to use the native windows tooltip control (pure Win32 API, no MFC stuff). I read the doc, it seems that I have to send a TTM_ADDTOOL message to bond a tool to the tooltip control. Only after that can I send TTM_TRACKACTIVATE & TTM_TRACKPOSITION to show the tooltip. But I want to display the tooltip anywhere I want it to be. For example, when the mouse hovers over a region of my window. This region is not a tool in the eye of Windows, it's just a region in my window. Perhaps I can bond

How to round QToolTip corners with CSS and QT

坚强是说给别人听的谎言 提交于 2019-12-18 17:56:06
问题 Please post some working example. The one below makes two borders: the rectangular background frame in black and a white outline with rounded edge. I can't believe it has not been done before. app.setStyleSheet("QToolTip { font-size:9pt; color:white; padding:2px; border-width:2px; border-style:solid; border-radius:20px; background-color: black; border: 1px solid white;}") 回答1: The solution is to set a custom mask on tooltip widget. I can think of two ways of doing that: Implement an own

Add custom text to Google Visualization tooltip (using GWT API)

风格不统一 提交于 2019-12-18 17:29:46
问题 The following question almost entirely describes what I'm trying to to... Add custom text to Google Visualization tooltip ... basically to add extra information to google-viz tooltips. The accepted answer looked pretty good but I'm using the GWT API. From the look of the latest version (1.1) data table doesn't support this... http://gwt-google-apis.googlecode.com/svn/javadoc/visualization/1.1/com/google/gwt/visualization/client/DataTable.html ... is anyone aware of any fix or workaround for

Chart.js tooltipTemplate not working

六眼飞鱼酱① 提交于 2019-12-18 17:28:07
问题 So I'm working with a bar graph in Chart.js, and I'm trying to get the custom tooltips working. Searching around, it seems like the thing to do in this context is to add tooltipTemplate: "<%= value %>% test" to my options section, and that would display the word test after my data value in the resulting tooltip. However, my tooltip remains completely unchanged in reality. And ideas? Thanks! 回答1: Here is an example of custom tooltip label: var ctx = document.getElementById("myChart"); var

How to change placement of Twitter-Bootstrap tooltip placement after initialization?

前提是你 提交于 2019-12-18 14:14:42
问题 I want to change placement of a Bootstrap tooltip on a text box after it has been already initialized: // these don't work $('#myTextbox').tooltip({ placement: 'left' }); $('#myTextbox').tooltip('options', 'placement', 'right' }); Is there any way to do it? If so, what am I doing wrong? 回答1: In Bootstrap 2.x, the answer is as ajbeaven states: $('#myTextbox').data('tooltip').options.placement = 'right'; However, from Bootstrap 3, all Bootstrap data is namespaced with bs : $('#myTextbox').data(