Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#124 closed enhancement (worksforme)

Menu Icons

Reported by: Richard Lake Owned by:
Priority: normal Milestone: 3.9-2015R1
Component: Menu.mui Version: 3.9-2014R3
Severity: minor Keywords:
Cc: OS Platform: All
Blocked By: Blocking:
Release Notes:

Description

Problem

Visual aid.

Analysis

Would be useful to have.

Enhancement recommendation

It would be very useful if we could specify images (thinking AISS Icons) in MUI Menus. Foreinstance, in a Cut, Copy, Paste context menu perhaps we could display a Pair of Scissors, a sheet of copy and a Wallpaper Roller.
There are of course many manu other useful ways that a developer could take advantage of being able to place images/icons inside menus.

Richard

Change History (3)

comment:1 Changed 6 years ago by Thore Böckelmann

Milestone: MUI 3.9-2014R4
Priority: undecidednormal
Reporter: changed from djriki to Richard Lake
Resolution: worksforme
Status: newclosed
Version: 3.9-2014R3

All you need is available already, but it cannot be applied in an automated fashion.

Just use a string like this for MUIA_Menuitem_Title

"\033I[5:path_to_your_image.mi1] your item text"

This will place the image "path_to_your_image.mi1" in front of the text " your item text". Please note that the extension ".mi1" is required to tell MUI that the image is a single image (no selected state) and that it is not tiled to fill a large area.

For the standard AISS images (which usually don't have any extension) or any other image with an arbitrary file name you will need to add "§NOTILING=1" to the image spec, i.e. "5:TBIMAGES:paste§NOTILING=1".

Thus the complete string for a "Paste" menu item with the standard AISS scissors image at the front would look like this:

"\033I[5:TBIMAGES:paste§NOTILING=1] Paste"

This feature is actively used in the context menu of Colorring.mui already.

comment:2 Changed 6 years ago by Thore Böckelmann

Milestone: MUI 3.9-2014R4MUI 3.9-2015R1

Milestone renamed

comment:3 Changed 5 years ago by Thore Böckelmann

Milestone: MUI 3.9-2015R13.9-2015R1

Milestone renamed

Note: See TracTickets for help on using tickets.