Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
* set the title of the current window
Set_Property (@window, "TEXT", Title)

 

 

Example: Setting Multiple Properties

...

Code Block
subroutine set_bulk_properties (Ctrls, Props, Vals)
declare subroutine set_property
* Ctrls   [in] - comma and/or @rm-delim'd control ids
* Props   [in] - comma and/or @rm-delim'd property names
* Vals    [in] - @rm-delim'd values
SetProps:
  swap "@" with @window in Ctrls
  convert "," to @rm in Ctrls
  convert "," to @rm in Props
  Set_Property(Ctrls, Props, Vals)
return

 

...

This subroutine, called in a window context (such as the Click event of a button), will set the window background color to yellow (RGB(255,255,0)), the Button_OK button font to Tahoma, and the Button_OK button text to OK, with one call to Set_Property().

...