Lisp HUG Maillist Archive

Customize appearance of menu items in option-panes?

Is there a straightforward way to customize the appearance of menu  
items in an option-pane? I'd like to make some option-panes whose  
items are color swatches.

I don't want to use prompt-for-color, because I want to offer a  
specific list of particular colors, not an open-ended UI for  
selecting any color at all (which is what you get, at least, on Mac  
OS X, even if you pass :colors).

--me


Re: Customize appearance of menu items in option-panes?

I don't know in the specific case of an option-pane but, more generally, I
customize menu and popup-menu with the "image-function" init-argument of the
menu object. Images appear on the left of the menu-item title (on Mac). The
function takes the item-data as argument and must return an image or a path..
In your case, you can prepare a set of simple images with the appropriate
colors. I don't no if there is a simpler way...

Best

Denis


Le 25/09/07 18:57, « [NOM] » <[ADRESSE]> a écrit :

> 
> Is there a straightforward way to customize the appearance of menu
> items in an option-pane? I'd like to make some option-panes whose
> items are color swatches.
> 
> I don't want to use prompt-for-color, because I want to offer a
> specific list of particular colors, not an open-ended UI for
> selecting any color at all (which is what you get, at least, on Mac
> OS X, even if you pass :colors).
> 
> --me
> 

-------------------------------------------------------
Denis Pousseur
70 rue de Wansijn
1180 Bruxelles, Belgique

Tel : 32 (0)2 219 31 09
Mail :  denis.pousseur@gmail.com
-------------------------------------------------------


Updated at: 2020-12-10 08:45 UTC