Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TIP #63: Add -compound Option to Menu Entries

0 views
Skip to first unread message

Vince Darley

unread,
Sep 27, 2001, 12:42:47 PM9/27/01
to

TIP #63: ADD -COMPOUND OPTION TO MENU ENTRIES
===============================================
Version: $Revision: 1.1 $
Author: Vince Darley <vincen...@users.sourceforge.net>
State: Draft
Type: Project
Tcl-Version: 8.4
Vote: Pending
Created: Thursday, 27 September 2001
URL: http://purl.org/tcl/tip/63.html
WebEdit: http://purl.org/tcl/tip/edit/63
Post-History:

-------------------------------------------------------------------------

ABSTRACT
==========

This TIP adds to menu entries the ability to display both textual
labels and images (or bitmaps) in exactly the same way as buttons and
menubuttons currently can, by adding a _-compound_ option.

RATIONALE
===========

Menu entries are very similar to labels in most respects, but they
currently lack the ability to show an image and a piece of text at the
same time. It is a useful piece of functionality currently missing from
Tk (certainly many standard applications make use of such menu entries,
e.g. Internet Explorer). The changes involved are relatively small.

A very similar TIP [TIP #11] was accepted without much argument.

PROPOSAL
==========

This TIP implements the change by adding an additional option
_-compound_ to menu entries which behaves identically to Tk's existing
_-compound_ option: it accepts the values _none_, _center_, _left_,
_right_, _top_, and _bottom_, and controls the relative placement of an
image to the text label in the entry.

A reference implementation exists, and is available from:
<URL:ftp://ftp.ucsd.edu/pub/alpha/tcl/compoundmenu.diff> (note this
diff has Windows-style line endings). This implementation is known to
work on Windows, and since the changes are very, very similar on Unix
and MacOS I expect it to work there (except perhaps for simple editing
mistakes).

COPYRIGHT
===========

This document has been placed in the public domain.

-------------------------------------------------------------------------

TIP AutoGenerator - written by Donal K. Fellows

[[Send Tcl/Tk announcements to tcl-an...@mitchell.org
Send administrivia to tcl-announ...@mitchell.org
Announcements archived at http://groups.yahoo.com/group/tcl_announce/
The primary Tcl/Tk archive is ftp://ftp.neosoft.com/pub/tcl/ ]]

Chris Nelson

unread,
Sep 28, 2001, 2:57:59 PM9/28/01
to
Vince Darley wrote:
> ...

> This TIP adds to menu entries the ability to display both textual
> labels and images (or bitmaps) in exactly the same way as buttons and
> menubuttons currently can, by adding a _-compound_ option.
> ...

Works for me.

Chris
--
Rens-se-LEER is a county. RENS-se-ler is a city. R-P-I is a school!

0 new messages