Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

changeButtonProperty()

Mammad900 edited this page Aug 30, 2020 · 1 revision

changeButtonProperty(page, index, property, value, type)

Summary

Changes a property of a button (Modifies a button)

Parameters

  1. Page (int) : The number of the page which contains the button
  2. Index (int) : The index of the button relative to the page
  3. Property (int) : The name of the property to change.
  4. Value (int, bool, String) : The new value for the property
  5. Type (int, bool, String) : A dummy value with the same type as previous parameter for compiler disambiguation

Acceptable values for Property

  • XPOS : X position. Acceptable types: int (Recommended), bool (true=1 false=0)
  • YPOS : Y position. Acceptable types: int (Recommended), bool (true=1 false=0)
  • HEIGHT : Height. Acceptable types: int (Recommended), bool (true=1 false=0)
  • WIDTH : Width. Acceptable types: int (Recommended), bool (true=1 false=0)
  • TEXT : Text. Acceptable types: String (Recommended), int (string representation), bool (true='True' false='False')
  • TEXT_COLOR : Text color. Acceptable types: int (16-bit color), bool (true=white false=black)
  • BACK_COLOR : Background color. Acceptable types: int (16-bit color), bool (true=white false=black)
  • BORDER_COLOR : Border color. Acceptable types: int (16-bit color), bool (true=white false=black)
  • ENABLED : Enabled. Acceptable types: bool (Recommended, false=disabled true=enabled), int (enabled if 1, else disabled)
  • VISIBLE : Visible. Acceptable types: bool (Recommended, false=hidden true=visible), int (visible if 1, else hidden)

Returns

Nothing

Clone this wiki locally