I'm going crazy with widgets, I'm so full of questions.
- where is a documentation about canvas?
- where is a documentation about text to display?
- rProperties and pProperties are special internal array variables?
Code: Select all
public handler OnLoad(in pProperties as Array)
put pProperties["widgetTheme"] into mWidgetTheme
put pProperties["colorScheme"] into mColorScheme
put pProperties["checked"] into mSwitchIsOn
end handler
public handler OnSave(out rProperties as Array)
put the empty array into rProperties
put mWidgetTheme into rProperties["widgetTheme"]
put mColorScheme into rProperties["colorScheme"]
put mSwitchIsOn into rProperties["checked"]
end handler
Ok, but:[-hh] wrote:OnSave writes out an array that is stored with the widget in the stack.
OnLoad gets the saved array back.