Blog Options
Archive
<< April 2024 >>-
Wednesday 24
- Expanding the StellarDS.io tooling -
Monday 22
- Easy Guide to Building a Pexels Gallery App with TMS WEB Core -
Wednesday 17
- New free component for sophisticated file uploads with TMS WEB Core -
Tuesday 16
- Closing the gap with TMS FNC UI Pack new additions -
Thursday 11
- Unveiling the Latest Enhancements in TMS VCL UI Pack -
Friday 5
- TMS components and Delphi and C++Builder 12.1 -
Wednesday 3
- Customizing the login page of your application using TMS Sphinx
- A Python library for using StellarDS.io effortlessly
- Introducing: How it Works with Holger - Building a Pexels gallery app with TMS WEB Core video series
- TMS FNC Cloud Pack with StellarDS.io backend: unparalleled productivity in VCL & FMX
Authors
- Bernard Roussely (1)
- Wagner Landgraf (82)
- Roman Yankovsky (2)
- Bart Holvoet (27)
- Aaron Decramer (18)
- Pieter Scheldeman (99)
- Nancy Lescouhier (32)
- Adrian Gallero (33)
- Bruno Fierens (404)
- Marcos Douglas B. Santos (5)
- Wagner R. Landgraf (1)
- Bradley Velghe (16)
- Bernard (2)
- Andrew Simard (86)
- Holger Flick (15)
- Gjalt Vanhouwaert (30)
- Tunde Keller (22)
- Masiha Zemarai (119)
Blog
All Blog Posts | Next Post | Previous PostControlling toolbar button sizing
Bookmarks:Wednesday, January 21, 2009
The Office 2007 ribbon GUI has sophisticated capabilities to resize controls depending on the size of the window & its toolbars. A button can have 3 different size states:glyph size (bsGlyph size)
label size (bsLabel size)
large size (bsLarge size)
During resizing of the form that contains a toolbar with buttons, the buttons can
automatically change their size state. This can be seen below where toolbar
buttons change the size state in order to always try to fit all available
buttons:
Toolbar is at maximum size. All buttons are in bsLarge size state
Toolbar shrinks. Half of the buttons shrink to bsLabel size state
Next step in shrinking process is that all buttons are now in the bsLabel size state
Half of the buttons shrink to bsGlyph size state
All buttons are in mimimum size type: bsGlyph size state
This is the default sizing behavior that the
toolbar automatically performs when it shrinks or expands. This sizing behavior
can be controlled on the level of a toolbar button through the properties:
MinButtonSizeState : minimum size the button can be set to
MaxButtonSizeState : maximum size the button can be set to
In the above example, all buttons on the
toolbar have the MinButtonSizeState set to bsGlyph and MaxButtonSizeState set to
bsLarge.
It is not always desirable that all buttons can
have a varying size state between bsGlyph and bsLarge. For the clipboard toolbar
for example, following layout is achieved by setting :
Paste button : MinButtonSizeState is bsLarge, MaxButtonSizeState is bsLarge
Cut, Copy, Format button : MinButtonSizeState is bsGlyph, MaxButtonSizeState is bsGlyph
This guarantees that irrespective of the toolbar size, the buttons have always the same appearance:
As such, it is clear that the TMS Advanced ToolBars & Menus components have the
built-in automatic smart resizing of toolbar buttons but have in addition to
this the flexibility to allow the developer to control the sizing behavior on
the level of each button.
Bruno Fierens
Bookmarks:
This blog post has not received any comments yet.
All Blog Posts | Next Post | Previous Post