Hi Kirk, I like to create menus the user invokes with a right click for this sort of thing.
Enable the On click event in the listbox to catch it anywhere in the column (let's you create a menu with content specific to the cell, column or row clicked on) or use the On header click event to open the menu on the header. With this in place I trap the Contextual click and then draw the menu. For simple menus I use Pop up menu ( https://doc.4d.com/4Dv18/4D/18/Pop-up-menu.301-4504659.en.html) For more involved or hierarchical ones I just create, display and release a menu using the menu commands. Building even fairly complex menus is amazingly fast. It's easy to write a method to build and display the menu then return the result to the calling method. On Mon, Nov 11, 2019 at 12:43 AM rooftop99--- via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi All, > > When creating a ListBox in the 4D form editor it is possible to select a > single column and then set attributes for Choice List, Required List, and > Excluded list. This creates drop-down menus in each cell of that column. > When creating a Listbox column programmatically I don’t see a way to set > these attributes. Is it possible? The command “Listbox set Property” > sets other attributes, but not those three. > > Bottomline: I am looking for a way through code to create an ad hoc > choice dropdown in a given column of a Listbox object. How are you folks > doing this now? > > Thanks in advance for your help! > > Kirk > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- Kirk Brooks San Francisco, CA ======================= What can be said, can be said clearly, and what you can’t say, you should shut up about *Wittgenstein and the Computer * ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************