Re: Can't resize widgets correctly.



"Silas Justiniano" <silasju@xxxxxxxxx> writes:

> Hello people. I'm trying to make some simple application. See the code:
>
> #-----------------------BEGIN
> #------------------------------------------------------------
> #Programa (ainda sem nome)
> #Iniciado em 2005.06.27
> #por Silas Justiniano - silas@xxxxxxxxxxxx
> #------------------------------------------------------------
>
> #opcoes globais do programa
> option add *Entry.background white; #fundo das entry
>
> #cria as widgets
> label .lbCodigo -text Código
> label .lbISBN -text ISBN
> label .lbTitulo -text Título
>
> entry .txtCodigo -textvariable txtCodigo
> entry .txtISBN -textvariable txtIsbn
> entry .txtTitulo -textvariable txtTitulo
>
> #habilita o resize da grid
> grid columnconfigure . 0 -weight 1
> 1. I want that the first column always with the same size: 100 pixels,
> for example.

grid columnconfigure . 0 -weight 0 -minsize 100
grid columnconfigure . 1 -weight 1

>
> #posiciona e exibe os componentes
> grid .lbCodigo -sticky w
> grid .txtCodigo
> 2. The widgets are not resized as the grid.

then make them all -sticky nsew









--
Donald Arseneau asnd@xxxxxxxxx
.



Relevant Pages

  • Cant resize widgets correctly.
    ... #opcoes globais do programa ... entry .txtCodigo -textvariable txtCodigo ... entry .txtISBN -textvariable txtIsbn ... grid .lbCodigo -sticky w ...
    (comp.lang.tcl)
  • Re: Basic databinding question
    ... For the data entry part, you can use a form view for entering in new ... appropriate grid and call the GridView.Databindmethod to refresh the ... The Orders grid ... CustomerID). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Newbie: algorithm - code help
    ... I have the following problem that i am trying to get a "clean" solution ... *before* my code becomes totally spaghetti. ... A row in the above grid can be added/deleted and we can change certain ... the grid entry that describes the data IF the entry exists, ...
    (microsoft.public.vb.general.discussion)
  • Re: New user questions (scrolling, activate)
    ... > I have a large number of data entries stored in %hash for which I'm ... How do I add a scrollbar to this grid? ... > using it with specific widgets, ... > of the "Entry" fields in the loop above. ...
    (comp.lang.perl.tk)
  • Re: MSFlexgrid Scrolling
    ... is written to the grid row This is fine until the grid goes past the bottom ... Then things get messy and no more entry is allowed by ... What I want to do is, at this bottom point, is to scroll the grid up so ... scrolling continue until data entry is complete. ...
    (microsoft.public.vb.general.discussion)

Loading