Re: ttk::label and setting a specific haeight in lines...



George Petasis wrote:
Hi all,

I am using a ttk::label to display a multiline message.
I have set a correct wrapping length, so the message is
correctly wrapped. However, the problem I am facing is that
the label adjusts its height according to what gets shown.
If 3 lines are shown, the label expands, if 1 line is shown
the label shrinks. And as I am using the label for
displaying progress messages (which change all the time)
the whole toplevel changes constantly in height.

Is there a way to inpose a minimum height of 3 lines in the ttk::label
widget? The ttk::label does not seem to have a -heigh option.

George

There's a couple things you could do:

1. Use "wm minsize <pathname> <width> <height>" to set the overall minimum size of your window.

2. Use a text widget for this function. It's a bit more effort to manage but, with scrollbars, it would simply change the size of the scrollbar and not the window.


Robert Joy
.



Relevant Pages

  • Re: ttk::label and setting a specific haeight in lines...
    ... I am using a ttk::label to display a multiline message. ... I have set a correct wrapping length, ... If 3 lines are shown, the label expands, if 1 line is shown ...
    (comp.lang.tcl)
  • ttk::label and setting a specific haeight in lines...
    ... I am using a ttk::label to display a multiline message. ... I have set a correct wrapping length, ... If 3 lines are shown, the label expands, if 1 line is shown ...
    (comp.lang.tcl)
  • Ping Randy Birch?
    ... Recursive File Search for Single or Multiple File Types ... I'm forbidden to display it here by the notice in the code, ... I tried to put a "working" label on the form so I'd know I clicked ...
    (microsoft.public.vb.general.discussion)
  • Label will not display NEW records frm another (bound) form.
    ... When I add the name of a new individual in a, bound form, it will not display ... that person’s name in a label control of a second unbound form. ... try to add NEW entries that I the label control will not work/refresh. ... past Registrations. ...
    (microsoft.public.access.formscoding)
  • RE: Trouble displaying info from access db
    ... Is lblSubName the name or your label? ... not getting the Subject Code to display in the Label? ... Private Sub Form1_Load(ByVal sender As System.Object, ... Dim intRecordCount As Integer ...
    (microsoft.public.dotnet.framework.adonet)