Open macMikey opened 1 year ago
interim:
com.livecode.pi.svgiconfilter is the new one in the powerbutton
mousedown does widgetclicked (tClickPos,false)
mouseup does widgetClicked (tClickPos,true)
doPopup (pClickPosition,tElement)
doAction(tElement)
doPopup
:
popup widget pArray["popup"]
what is causing the PI to draw the array of navbars?
in calculateEditModeIconRects()
we call
setEditableRect("icon", tX, mNavData[tX]["icon_rect"], \
"Icon", "com.livecode.widget.iconPicker", iconSelected)
setEditableRect("selectedIcon", tX, mNavData[tX]["hilited_icon_rect"], \
"Highlighted Icon", "com.livecode.widget.iconPicker", iconSelected)
let's try com.livecode.pi.svgpicker
for starters.
Ran into an issue with the editor b/c the editor stack has a navbar in it, and we're trying to modify the behavior of the navrad, and the behavior of the editor is embedded in the widget. i created a new editor stack, put a navrad in the template group, created the behavior stack, put it in the editor folder, and let's see what happens...
just did the following:
maybe i missed something when i was trying to generate the edit mode goodness. remember, the reason why we're doing this is because navbar and thus navrad have the edit functionality for the items built into the widget (i.e. bootstrapping). we are trying to get the widget to use the svgfilter instead of iconpicker, so the code that is embedded in the navbar widget is crushing our dreams because it's compiled to use the iconpicker, and it is contained in the editor stack, thus its behavior rules.
notes:
there is a stack "com.livecode.widget.polygrid.editor.columns"
. the editor will not appear until the "columns" panel is open.maybe i need to try a different use syntax and specify the path.
if you edit the navrad editor stack, which has the template group and a navrad embedded in it, the navrad is blank, and the editor won't load. if you open the com.pi.navbar editor, the navbar appears in the group, and selecting it brings up the editor just fine, thank you very much.