Right click action with Icon ?

F

Ferro Francesco

Hello,

I would like to know how can add an icon on the right click menu on a
shape?
 
P

Paul Herber

Hello,

I would like to know how can add an icon on the right click menu on a
shape?

The icon is controlled by the ButtonFace cell with the action.
Select the shape, menu Window -> Show ShapeSheet
In the shape's Actions section (create it if required), the ButtonFace
cell, set it to "21", you will see the EditCut scissor shape.

From the help file on that cell
The IDs that can be used in the ButtonFace cell are the same as the
IDs used with the FaceID property of a CommandBarButton object. For
more details about these IDs, search for "working with command bar
button images" on MSDN.
Even better, put that phrase into Google and you'll find a page on
MSDN.
 
F

Ferro Francesco

Okay, great.. i see how to , thank's !

And.. it's much complicated to put a "custom icon" ? From the
ressource file or directly a url on the disk ?

Paul Herber a écrit :
 
N

Nikolay Belyh

Yes, it is complicated (though possible). Unfortunately, AFAIK you
won't be able to do that with the ShapreSheet.

I think the easiest way to do that is to get the CommandBar named
"Drawing Object Selected" (i.e. the context menu commandbar), and then
add your items to that command bar. For each item you can set
".Picture" and ".Mask" properties to your own (custom) pictures.

Kind regards, Nikolay.

Okay, great.. i see how to , thank's !

And.. it's much complicated to put a "custom icon" ? From the
ressource file or directly a url on the disk ?

Paul Herber a ¨¦crit :


On Wed, 26 Nov 2008 14:43:02 -0800 (PST), Ferro Francesco
The icon is controlled by the ButtonFace cell with the action.
Select the shape, menu Window -> Show ShapeSheet
In the shape's Actions section (create it if required), the ButtonFace
cell, set it to "21", you will see the EditCut scissor shape.
From the help file on that cell
The IDs that can be used in the ButtonFace cell are the same as the
IDs used with the FaceID property of a CommandBarButton object. For
more details about these IDs, search for "working with command bar
button images" on MSDN.
Even better, put that phrase into Google and you'll find a page on
MSDN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top