Helper to display a little (?) mark which shows a tooltip when hovered. In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md)
| 411 | // Helper to display a little (?) mark which shows a tooltip when hovered. |
| 412 | // In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) |
| 413 | static void HelpMarker(const char* desc) |
| 414 | { |
| 415 | TextDisabled("(?)"); |
| 416 | if (IsItemHovered()) |
| 417 | { |
| 418 | BeginTooltip(); |
| 419 | PushTextWrapPos(GetFontSize() * 35.0f); |
| 420 | TextUnformatted(desc); |
| 421 | PopTextWrapPos(); |
| 422 | EndTooltip(); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | #pragma warning( push ) |
| 427 | #pragma warning( disable : 4505 ) // warning C4505: 'ImGui::ArrowButtonDisabled': unreferenced function with internal linkage has been removed |