Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BWidget::NoteBook how to add tooltip over tab title

36 views
Skip to first unread message

Puneet Goyal

unread,
Jun 22, 2016, 9:19:54 AM6/22/16
to
Hi

Is there any way to add tooltip on tab title ?

proc tab_raise_cmd { nb page } {
set ctxt [$nb itemcget $page -text]
tooltip::tooltip [$nb getframe $page] $ctxt
<<<< this is not working for me

if {[string length $ctxt]>10} {
set ctxt [format "%s..." [string range $ctxt 0 9]]
}
$nb itemconfigure $page -text $ctxt
}

$nb insert end test -text "Testing tooltip" -raisecmd [list tab_raise_cmd $nb test]

Regards, puneet

Puneet Goyal

unread,
Jun 23, 2016, 7:46:22 AM6/23/16
to
ok i am able to do it using -helptext option.
0 new messages