[TCLCORE] Crossplatform Tk differences
by Carlos Tasada other posts by this author
Apr 28 2008 10:48AM messages near this date
[TCLCORE] Fwd: Self-simplifying pipes on Windows ?
|
Re: [TCLCORE] Crossplatform Tk differences
Hi guys,
I've just found an annoying problem when executing the same code in
Windows and Linux. I'm using ActiveTcl 8.5.1 and I detected some
different look between the Windows and Linux windows, when checking the
code I found that the Tk objects (i.e a button) have different sizes in
both platforms
% button .b1 -text "OK" -font {arial 8} -width 10
% pack .b1
In Linux
% winfo geometry .b1
86x25+0+0
% winfo pixels . 1i
87
In Windows
% winfo geometry .b1
70x25+22+0
% winfo pixels . 1i
96
As you can see the width is really different between platforms and that
causes that the look of my application is really different, with the
buttons even overlapping in some cases. I would bet that's something
related with the dpi, and if I change it will have the same look, but I
cannot ask all my clients to do that, so, my question is, is there any
workaroud? as anyone else found the same problem?
Best Regards,
--
Carlos Tasada
Farmers WIFE Developer
General Line +34 971 730 777
support@[...].com
********************************************************************************************
*
This e-mail and any attached files may contain confidential and/or
privileged information.
If you are not the intended recipient (or have received this e-mail in
error) please notify
the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
Thread:
Carlos Tasada
Michael Schlenker
Donal K. Fellows
|