Author Topic: popupmenu display  (Read 1640 times)

0 Members and 1 Guest are viewing this topic.

subbup

  • Guest
popupmenu display
« on: June 29, 2005, 02:34:38 AM »
can we duplicate the Contextmenu in vb.net in autocad with the help of DCL or menu's.
I would like to display some list when user press mouse right button.
User should able to select one of the item in that list.

daron

  • Guest
popupmenu display
« Reply #1 on: June 29, 2005, 07:29:51 AM »
If I'm reading you right, when you write a prompt such as: (getkword "\nSpecify direction: [X/Y/Z/XY/XZ/YZ/XYZ] <XYZ>: ")
do as I've done and encapsulate the conext you want displayed on the menu in square braces and separate each item with a forward slash.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
popupmenu display
« Reply #2 on: June 29, 2005, 08:30:22 AM »
I don't fully understand what you want to do .. but it can be done regardless of which answer you want ..

Q. Can you create a right click context menu in lisp?
A. Yes, using the POP menus in a menu

example as shown in Daron's post above.

Simply enclose the options in square brackets

Q. Can you create right click context menus in VB
A. Yes, you need to implement some API calls to do so.

I'll not provide an example simply because of it's size, however if you would like to see one, I can provide it .. although it will need to be ported to .net
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie