Vai al contenuto

Shared properties

Almost all widgets have the following properties:
  • background: background color of component
  • foreground: main color of component
  • font: text style
  • x: position X on page (in pixels referred to the upper left corner)
  • y: position Y on page (in pixels referred to the upper left corner)
  • width: component width (in pixels)
  • height: component height (in pixels)
Almost all editable components have the following property:
  • font: text style
  • enable: lets you disable/enable editing of the component at runtime. You can set a variable or a constant. If not set, or set at a value other than zero, the component is editable, otherwise it becomes non-editable while maintaining the property of taking the focus.