| Ticket UUID: | 484102 | |||
| Title: | icon-position for -compound left option | |||
| Type: | RFE | Version: | None | |
| Submitter: | nobody | Created on: | 2001-11-21 08:55:49 | |
| Subsystem: | None | Assigned To: | tmh | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-22 17:22:36 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-10-03 21:03:03 | |||
| Description: |
When using the new implemented "-compound left" option
from the menu-command, this icon is position to the
left of the "text-column".
I suppose the icon should be put in the column where
the "selectimages" (refered to as "indicatorSpace")
are placed.
This is in tkWinMenu.c (for Tk 8.4a4):
To position the icon in the "indicator"-column (which
looks more windows-like :-)), simply
function "DrawMenuEntryLabel" has to be modified
from
--------------------------------------------------
switch ((enum compound) mePtr->compound) {
...
case COMPOUND_LEFT: {
textXOffset = imageWidth + 2;
textYOffset = 0;
imageXOffset = 0;
imageYOffset = 0;
break;
}
--------------------------------------------------
to
--------------------------------------------------
case COMPOUND_LEFT: {
textXOffset = 0;
textYOffset = 0;
imageXOffset = x+activeBorderWidth-leftEdge;
imageYOffset = 0;
ยด break;
}
--------------------------------------------------
Thanks in advance
Stefan
| |||
| User Comments: |
serhiy.storchaka added on 2026-10-03 21:03:03:
Implemented in 2004 by [c5273b5007] (8.5) and [bbd12840e0] (8.4): with -compound left the image is drawn in the indicator column, unless the entry is a checkbutton or radiobutton. svogel added on 2001-11-21 17:54:17: Logged In: YES user_id=250752 Yes, that's right. Perhaps it's better to add another option to -compound Something like -compound left_indicator or -compount indicator or similar, so that you can use the -compound left option for checkbuttons/radioboxes. Should the tick not be configurable, too? nobody added on 2001-11-21 17:03:22: Logged In: NO Just wish to point out that if the image is moved to the left in this case, and the menu entry can have a 'tick' put to the left (e.g. its a radiobutton or checkbutton item), then that tick would overlap the image. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki