On Jan 4, 2009, at 9:15 AM, Pascal Georges wrote:
> 2009/1/4 Alexander Wagner <[email protected]>
>
>> Pascal Georges wrote:
>>
>> Hi!
>>
>> Those buttons are classical, (no style) and use the
>> "normal"
>>> font. Maybe
>>>
>>> try to change the default font ?
>>> I suspect a problem in getting font metrics on your platform.
>>>
>>> Pascal
>>>
>>> I tried many fonts and the problem persists, when I change the
>>> size
>>> to some value over 20 the height seems to be ok.
>>>
>>>
>>> Did you try various themes (options -> themes) ?
>>> On Linux, whatever setting I choose, I don't approach the poor
>>> look of
>>> your screenshot ... So it is hard for me to fix this.
>>>
>>
>> Pascal, I think this is the similar problem as those I
>> reported for the menu buttons which use a larger font than
>> the other buttons. While back I sent you the font scales as
>> they would be required to mimic 3.6.26. Now, I think one can
>> read it either way: I read it that the menu buttons get to
>> big a font, Israel reads it the other way round that the
>> font for the normal buttons (which is the "small" style) is
>> to small compared to the regular font.
>>
>> As I mentioned back then I _think_ that some button types
>> are not used consistently within scid, ie. something that is
>> a dialog button should be a button and vice versa. Surely,
>> one would not want to set the "small" font to the same as
>> the "regular" font.
>>
>> To see where this happend I found it helpful to set one font
>> to some serif type and the other one to a sans type font.
>> You'll then notice a funny mixture between sans and serif
>> fonts within certain dialogues even for different controls
>> that would have similar functions compared to the dialogues
>> context.
>>
>> It's no critical error though, I think some unification of
>> this styles might be helpful and could even come up
>> automagically with implementation of themes in the long run.
>> (Though I'd then like to learn how to build a theme for
>> tcl/tk to get a decent font scheme ;)
>
>
> Alexander, please read code of header.tcl at line 176 and just
> below, and
> tell me why this leads to a text higher than its container (hence
> the awful
> MacOs' screenshot above).
I don't know if you figured something out about this, but I changed
the code of the buttons to use ttk::checkbutton and it looks great.
Israel
=============
--- tcl/search/header.tcl 3 Jan 2009 14:51:21 -0000 1.14
+++ tcl/search/header.tcl 11 Jan 2009 04:57:33 -0000
@@ -177,8 +177,8 @@
foreach i $sTitleList {
set name [string toupper $i]
if {$i == "none"} { set name "-" }
- checkbutton $w.t$c.b$i -text $name -width 5 -font $regular -
variable sTitles($c:$i) -offvalue 0 -onvalue 1 -indicatoron 0 \
- -state $spellstate -pady 0
+ ttk::checkbutton $w.t$c.b$i -text $name -width 5 -variable
sTitles($c:$i) -offvalue 0 -onvalue 1 \
+ -state $spellstate
pack $w.t$c.b$i -side left -padx 1
}
}
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users