By default, Visual Tcl uses default values for many options like
background, foreground, font, highlightcolor, xpad, etc. When
running outside Visual Tcl, the default values may be different.
However, Visual Tcl allows you to customize any widget option
and save it in the project, to make it look exactly the same inside
or outside Visual Tcl.
For example, if you want to save the padding options, check
the boxes on the right of the xpad and ypad options. If you want
to save the font option, check the box on the right of the font option.
By right-clicking on the label of an option, you can elect to
apply this option to all the widgets of the same class in the project,
so you don't have to select a widget, change its padding, then
select another one, and so on.
Another way is to add values to the options database like
option add *Button.padX 0
option add *Button.padY 0
in the init function of your project, instead of saving these options
for each widget.
Different default values are particularly noticeable with Tix, because
Tix tries to set its own look in the options database. Visual Tcl ignores
all Tix requests to change the options database, so when you run
your Tix project as standalone, it will look different.
CG
|--------+------------------------------------->
| | Carsten Neumann |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eforge.net |
| | |
| | |
| | 04/11/2001 07:31 AM |
| | Please respond to vtcl-user|
| | |
|--------+------------------------------------->
>-----------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: Re: [vtcl-user] different size running-vtcl
|
|
|
>-----------------------------------------------------------------------------------------------------------|
On Tue, 10 Apr 2001, Stef Pillaert wrote:
> Hello,
> when editing a project in vtcl, buttons seem to be a (very) little bit
smaller
> (or with a smaller padding?) then when the application is run outside
vtcl.
> Anyone an idea why this might happen? It is a bit anoying, because I set
> xminsize and yminsize on some toplevels, which I have to correct
afterwards ...
>
> Thanks,
> Stef.
I have the same with font sizes, but it's rather obvious.
Regards
Carsten
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user