Tk Library Source Code

View Ticket
Login
Ticket UUID: 565284
Title: Notebook can't cope with multi-line-text
Type: Bug Version: None
Submitter: svogel Created on: 2002-06-06 12:18:50
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-10-21 06:16:26
Resolution: None Closed By: damonc
    Closed on: 2003-10-20 23:16:26
Description:
I'd like to have a page-"label" with newlines in it.
Only the first line can be seen in the label.
This is due to the calculation of the height of the tabs in 
function:
NoteBook::create (and NoteBook::configure)
which calculates the height like this:
[expr {[font metrics $font -linespace] + 6}]

Maybe the delta (6) should be configurable anyway, 
because the texts (if the tabs are placed "top") are very 
close to the tab-panes. So for my taste, I would like to 
have
[expr {[font metrics $font -linespace] + 8}]

May be an additional option like: -text_offset_y or 
something similar would do it.

By the way, the width again is o.k. even with multiline-
texts.