| Ticket UUID: | 2970577 | |||
| Title: | add tooltip image support | |||
| Type: | Patch | Version: | None | |
| Submitter: | r_zaumseil | Created on: | 2010-03-15 10:21:35 | |
| Subsystem: | tklib :: tooltip | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2024-05-23 16:27:37 | |
| Resolution: | Out of Date | Closed By: | aku | |
| Closed on: | 2024-05-23 16:27:37 | |||
| Description: |
Tooltip can only display text. With the following code in tooltip::show we can also display images and bitmaps.
The user has to provide a valid image/bitmap instead of the message argument.
# Use late-binding msgcat (lazy translation) to support programs
# that allow on-the-fly l10n changes
if {[catch {set type [image type $msg]}]} {
$b.label configure -text [::msgcat::mc $msg] -justify left
} elseif {$type eq {bitmap}} {
$b.label configure -bitmap $msg -justify left
} else {
$b.label configure -image $msg -justify left
}
| |||
| User Comments: |
aku added on 2024-05-23 16:27:37:
Undone in favour of ticket [803a13c9f0], also by Rene. Moved commit [3a592d1145] off trunk, and hidden. aku added on 2024-05-22 20:18:10: Accept with commit [3a592d1145]. Bumped to version 1.8. Thanks to Rene for ticket, patch, and extreme patience. r_zaumseil added on 2010-03-16 20:35:49: File Added - 366968: tooltip.diff | |||
Attachments:
- tooltip.diff [download] added by r_zaumseil on 2010-03-16 20:35:49. [details]
