drop-down menu

Started by domenicomaria, April 14, 2019, 09:40:46 AM

Previous topic - Next topic

domenicomaria

is it too much complicated
to add
to the collection of available controls
in OpenDCL Studio,
a drop-down menu ?

I use combo box.
That is good.
But not enough.

A drop-down menu
could let
to add sub-menus
and
deactivate some items
. . .
and so on.

is it too much complicated ?

Fred Tomke

Hi, I'm not sure whether I understood right. As far as I know all the controls are available in any kind of dialog (modal, modeless, palette, ...)
Why should it be neccessary to deactivate them in Studio?
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

domenicomaria

i want mean that
a true
drop-down menu
could let us
to add sub-menus
and
deactivate some items
-> contained in the menu <-

... the normal drop-down menu behaviour ...

with combobox
these things are not possible


navsun

You can use the button to achieve this function.

Fred Tomke

Hi, I had a try with a custom menu because the well-known Windows menu class isn't implemented in OpenDCL. My sample is based on a AutoCAD menu to be loaded when clicking a button.

You need a cuix with a named menu ("POP1").
Then call it by Lisp:

  (menucmd "P0=MYMENUGROUP.POP1")
  (menucmd "P0=*")

Hope that gives ideas...
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]