[gtkada] Sizes of Objects? Manually Set?

Jeremy Cowgar develop at cowgar.com
Wed Jun 5 16:11:27 CEST 2002


On Wed, 2002-06-05 at 06:37, Preben Randhol wrote:
> Jeremy Cowgar <develop at cowgar.com> wrote on 04/06/2002 (22:49) :
> > Do I have to manually set the sizes of objects, like an entry control?
> 
> No you shouldn't set the size of objects. They will resize when you
> resize your entire window. If you don't want a button to resize you just
> set No on Expand and Fill in the Packing tab of the Properties window in
> Glade.
> 
> > I change it in Glade (i.e. an entry for a 2 digit code) and then build
> > sources and it does not seem to be paying attention to anything I set
> > in glade.
> 
> Can you please explain this a bit more as I don't understand. Do you
> mean max length ? Please attach the glade file too.

The minimum size of Entry boxes such as a State (only needs space for 2
characters) takes up as much space as an address line. I then set the
Width attribute in Glade and make everything look good in Glade (the
.glade I sent still needs a little tweaking) but when I Build (via
Glade) and the compile in Ada, all my Width settings are no longer
present, nor in the generated Ada code.

My State, Phone, Fax all take the same space as Doctor Name, Office
Name, etc...

I have attached a glade file with a sample screen.

Thank you for taking the time to help.

Jeremy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kp.glade
Type: application/x-glade
Size: 27452 bytes
Desc: not available
Url : /pipermail/gtkada/attachments/20020605/f7994fde/attachment.bin 


More information about the gtkada mailing list