Mitch,
It's easy to roll your own menus on the fly for buttons or anything else
for that matter. I have dozens of them.

For simple lists I use the popup menu command:


$menu:="Item 1;Item2;Item3"
$result:=Pop up menu($menu)

Case of
: ($result>0)
  // do something
End case


For more involved menus, or if I want submenus, I build them:

$menu:=Create menu

APPEND MENU ITEM($menu;"Menu Item 0")
SET MENU ITEM PARAMETER($menu;-1;"0")

APPEND MENU ITEM($menu;"---")  // line

  // display the menu, get the result
$result:=Dynamic pop up menu($menu)
RELEASE MENU($menu)

Case of

:($result="0")

...

End case


​It's very fast to do this sort of thing and easy to put the code in
project methods you call from any object. ​I typically pop them up for On
click & Contextual click. And this is how I popup menus when a user clicks
a link or button on a web form.

On Thu, Sep 1, 2016 at 5:37 PM, Mitchell Shiller <mshil...@sympatico.ca>
wrote:

> Custom buttons do not allow you to have a popup menu feature.  So I can
> get most of what I want but not all.
>
-- 
Kirk Brooks
San Francisco, CA
=======================
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to