dev • api • name • read_property

READ_PROPERTY

#define READ_PROPERTY () ...

Returns if the property implementation function is called :

  • To read the property, then TRUE is returned.

  • Or to write the property, then FALSE is returned.

Examples

/ * This Is The implementation Of the Visible Property of a control * /

BEGIN_PROPERTY(CWIDGET_visible)

  If (READ_PROPERTY)
    GB.ReturnBoolean(!QWIDGET(_object) - > isHidden());
  Else
  {
    If (VPROP(GB_BOOLEAN))
      QWIDGET(_object) - > show();
    Else
      QWIDGET(_object) - > hide();
  }

END_PROPERTY

See also