From: <no...@tc...> - 2025-07-30 17:03:19
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [2e5f4a893ea5cb3e39499960ae91582f6b21575611ebe3190f920cd6bcf17175] [tooltip on megawidgets] By ralfixx For Tklib On 2025-07-30T16:53:38.394 Details https://core.tcl-lang.org/tklib/tinfo?name=2e5f4a893ea5cb3e39499960ae91582f6b21575611ebe3190f920cd6bcf17175 Ticket https://core.tcl-lang.org/tklib/tktview/9924aee88145dde4d5147b2e9d87b048201c34b4 Changed Fields assignee: nobody closer: nobody comment: [https://core.tcl-lang.org/tk/tktview/47d4f291598222849fc0121e7ffbdee5 3766ce77] deliberately changed the behaviour of Enter/Leave events of widgets in a parent/child relationship: now when entering a child, the parent gets a leave event. This however kills tooltips on the parent, which previously (up to tk 8.6.12) worked on both, parent *and* child. This has an impact on megawidgets which have a parent-child-relationship: previously (before tcl 8.6.13) a tooltip worked on all parts of the megawidget, now (tcl 8.6.13 and later) the situation is more complex: <pre> wm geometry . 200x100 # a "mega-widget" with borders pack [frame .f -bg green1] -side top pack [frame .f.f1 -bg red -width 20 -height 20] -side left -padx 10 -pady 10 pack [label .f.lbl -bg white -text label-1] -side right # a "mega-widget" without borders (no padding) pack [frame .f2 -bg green1] -side bottom pack [frame .f2.f1 -bg red -width 20] -side left -fill both pack [label .f2.lbl -bg white -text label-2] -side right -fill both -expand yes package require tooltip tooltip::tooltip .f "This is .f" tooltip::tooltip .f2 "This is .f2" </pre> In the upper "mega-widget", the tooltip comes and goes as the mouse enters the various parts (red box, white label). In the lower "mega-widget", the container itself is not visible, and the tooltip works on all parts of the mega-widget. IMHO the tooltip also needs to work on all parts in the upper "mega-widget". Proposed patch attached (ignore the <Leave> event if the event detail is "NotifyInferior"). R' foundin: 2.0.1 is_private: 0 login: ralfixx priority: 5 Medium private_contact: 1d3c95db24e116878d6afed7cf890a89a0effe62 resolution: None severity: Important status: Open submitter: ralfixx subsystem: tklib :: tooltip title: tooltip on megawidgets type: Bug ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |