This is not necessarily the current version of this TIP.
| TIP: | 366 |
| Title: | Variable Sized Indicators for Menubuttons |
| Version: | $Revision: 1.1 $ |
| Author: | Russell Davidson <russelld at actarg dot com> |
| State: | Draft |
| Type: | Project |
| Tcl-Version: | 8.7 |
| Vote: | Pending |
| Created: | Thursday, 29 April 2010 |
| Keywords: | Tk |
This TIP is to allow custom sizing of menubutton indicators using -indwidth and -indheight as options.
Currently there is no way to vary the size of the indicator for a classic Unix menubutton widget. Adding the ability to control this via configuration options will give the coder more control over a GUI's appearance for when such fine control is required.
The following options are proposed to be added to the ::menubutton widget:
The -indwidth option allows the specification of the width of the indicator in any form that converts to a screen distance (will be converted to an integer number of pixels).
The -indheight option allows the specification of the height of the indicator in any form that converts to a screen distance (will be converted to an integer number of pixels).
Changes were made to:
tkMenubutton.h to change the default indicator size, and to add strings for the indicator width and indicator height,
tkMenubutton.c to add -indwidth and -indheight options, and implement them for custom sizes,
tkUnixDefault.h to add default values for the indicator width and height,
tkUnixMenubu.c to implement the changes for drawing the indicator.
A patch exists in SourceForge (Feature Request 2994285 [1]).
This document has been placed in the public domain.
This is not necessarily the current version of this TIP.