Customizing the context menu

General discussions about GdPicture.NET.
Post Reply
User avatar
kketterman
Posts: 32
Joined: Tue Apr 21, 2009 6:55 pm

Customizing the context menu

Post by kketterman » Thu Apr 30, 2009 5:15 pm

Is it possible to remove some items from the context menu?

I have gdviewer1.setitemmenuenabled(#, False) which just disables the option as it should, but I would like to remove some items such as "Play Gif"; "Stop GIF Animation" since my application will never deal with animated gif's.

I tried setting the caption to null, but it stayed an empty line on the menu.

Thanks.

** Side note, gdviewer1.SetItemMenuEnabled(17, False) does not seem to work. (Copy to Clipboard)

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Customizing the context menu

Post by Loïc » Fri May 01, 2009 5:14 pm

Hi,

A new RemoveItemMenu() method will be added into the next release.
For your side note, I've tested with no problem.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest