I had seen the LC video on polyGrid (shown here: https://livecode.com/polygrid-widget-in-the-spotlight/) and the last bit caught my eye : 'use polyGrid to customise popup menus'
I thought I'd use this on a project and thought the popup command could be used, but that seems not to be the case as trying it just produces a great semi-opaque rect.
According to the documentation, the syntax is:
As far as I can tell, this means I cannot popup an instance of a widget (in this case a polyGrid) I modified, but rather it launches a generic instance in a rect that has to be defined as a key of the properties array that needs to be passed to the command.popup widget <kind> [at <location>] [with <properties>]
I mean I could use a hidden widget, show it at the clickloc and hide it again, but that seems a bit lame.
I can't get the properties of a polygrid widget as a collection (ie put the properties of widget "myPolyGrid" into tArray just returns an empty array) which means I'd have to individually add a long number of properties to the array to pass to popup, and because I modified a larger number of props that's just not practical...
Am I missing an obvious way to do this, or is showing a hidden object at the clickloc the only way to do this? I was thinking it's something I'd like to be able to access from any card - would the only way then be that this is a hidden background group that is shown at the clickLoc (which means I'd have to add to each card as well?)
Many thanks
Stam