Problem with ttk::spinbox button size



To cater for hugely varying display sizes and resolutions, in an app I allow
the user to change the default font sizes used by Tk.

If I have a classic Tk listbox and I increase the font size, then the up and
down arrows which spin the box are enlarged proportionally, as expected.

However, ttk::listbox (and, for that matter, ttk::combobox) enlarge the entry
field but the buttons stay the same size as before. If you enlarged the font
because you have a very high resolution display, then you end up with a
nicely lookung text field, with two tiny buttons crunched up on the right
hand side.

I tried to play with the style layout for a spinbox, but no matter what
combinations of -expand and -sticky options I specified for the subwidgets
which make up the spinbox, the buttons did not get any larger. I could move
them around, but the actual button size remained the same.

While using the classic widget instead of the ttk:: one would be one
solution, I'd like to stick to ttk:: thoughout due to its better adherence to
platform specific look&feel.

Could someone tell me the secret of making ttk:: subwidgets scale
proportionally to each other?

Thanks,

Zoltan

--
Zoltán Kócsi
Bendor Research Pty. Ltd.

.



Relevant Pages

  • RE: Font Size
    ... "Denise" wrote: ... The font size in Display Properties is ... On Appearance Tab make sure this option is set correctly: ... "Click on Settings and change the resolution to lower resolutions than the ...
    (microsoft.public.windowsxp.perform_maintain)
  • 1920x1080 how some programs (non-menu area) fonts are displayed
    ... First, yes we understand about font size, clear type, and dpi adjustments. ... Yes we know for higher resolutions being sure to turn on and adjust ... OS's control over the font size, clear type, or dpi adjustments in the ...
    (microsoft.public.windowsxp.general)
  • Re: Optimise screen size with CSS
    ... CSS is probably the best way to do it. ... Current most popular resolutions, from stats at ... As for font size. ... font-size: small; ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Font Size Changes with Screen Resolution
    ... MM_TEXT and use CreatePointFont to get the proper size of the font instead. ... resolutions, but it seems a bit too much from your examples. ... A typographical point is a 72/th of this height, MulDiv(logpixelsx, ... > My understanding is that a TWIP is a TWIP. ...
    (microsoft.public.vc.mfc)
  • Re: Any good screen resolution components?
    ... Although it is a bitmapped font, it is still available in a range of sizes, ... so Delphi has enough size choices. ... I always run my PC at 96 DPI and do all my Delphi work at that resolution. ... If you change resolutions and reopen a project in Delphi, ...
    (borland.public.delphi.non-technical)