Re: pack or grid (or the other way around)?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: pack or grid (or the other way around)?
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 16. Jan 2025, 21:52:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmbrj2$3ln8n$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Luc <luc@sep.invalid> wrote:
On Thu, 16 Jan 2025 11:34:34 +0100, Ralf Fassel wrote:
 
In addition to what Rich wrote, here is what you *cant* do:
>
 frame .f
 label .f.l1
 label .f.l2
 
 pack .f.l1
 grid .f.l2
 => error: cannot use geometry manager grid inside .f which already has
slaves managed by pack 
>
 grid .f.l2
 pack .f.l1
 => error: cannot use geometry manager pack inside .f which already has
slaves managed by grid 
>
But .f itself can be managed by either grid or pack, regardless of what
you use to pack/grid widgets 'inside' .f
**************************
 
That is my concern.
 
.f itself can be managed by either grid or pack, regardless of what
you use to pack/grid widgets 'inside' .f
 
That's because .f is the parent.
 
Now suppose someone has an application that uses grid. Everything is
inside one big 'gridded' frame. And suppose my megawidget uses pack.
 
Or the other way around.
 
That is my concern.

Provided your megawidget exposes only one single top level widget
(usually a frame which holds all the internal widgets) to the user of
the megawidget it will make no difference.  The user of the megawidget
can do anything they like to the outer container as far as
pack/grid/placing it, zero impact on your bits and pieces inside that
container.



Date Sujet#  Auteur
16 Jan 25 * pack or grid (or the other way around)?6Luc
16 Jan 25 +- Re: pack or grid (or the other way around)?1Rich
16 Jan 25 `* Re: pack or grid (or the other way around)?4Ralf Fassel
16 Jan 25  `* Re: pack or grid (or the other way around)?3Luc
16 Jan 25   `* Re: pack or grid (or the other way around)?2Rich
17 Jan 25    `- Re: pack or grid (or the other way around)?1Robert Heller

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal