Code: Select all
property showTitle get mShowTitle set setshowTitle metadata showTitle.editor is "com.livecode.pi.boolean" metadata showTitle.default is "false" metadata showTitle.section is "Text" private variable mShowTitle as Boolean private handler setshowTitle(in pVal as Boolean) put pVal into mShowTitle redraw all end handler
put mShowTitle into rProperties["showTitle"]
added the following to OnLoad:
put pProperties["showTitle"] into mShowTitle
The problem is, that when I open a stack that uses this widget, it errors out at the line in "OnLoad" because the "showTitle" key does not currently exist. How do I get around this?