OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: domenicomaria on April 14, 2019, 09:40:46 AM

Title: drop-down menu
Post by: domenicomaria on April 14, 2019, 09:40:46 AM
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 ?
Title: Re: drop-down menu
Post by: Fred Tomke on April 14, 2019, 03:06:07 PM
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
Title: Re: drop-down menu
Post by: domenicomaria on April 14, 2019, 10:08:43 PM
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

Title: Re: drop-down menu
Post by: navsun on August 06, 2021, 06:50:17 PM
You can use the button to achieve this function.
Title: Re: drop-down menu
Post by: Fred Tomke on August 09, 2021, 05:56:43 AM
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