Shiny Language Reference
Language Reference > User Interface
User Interface
Creating and using user interface controls such as buttons
A Flash movie showing how to create and use controls with the Panel Designer is available on the Media page, the Panel Designer reference is here.
Applicable to all user interface controls:
- loadlayout - Instructs Brass to load a control layout created with the SSEdit Panel Designer
- savelayout - Instructs Brass to save the current control layout for the 100% Configuration System
- setcontrolname - Sets the name associated with a specific control
- idfromname - Converts a control name to it's control ID
- sethandler - Configures a function to be called whenever a control receives an event such as a click or keypress
- setcaption - Sets the caption text of a control
- getcaption - Retrieves the caption text of a control
- enablecontrol - Enables or disables a control for input
- isenabled - Returns the enabled state of a control
- showcontrol - Shows or hides a control
- isvisible - Returns the visible state of a control
- deletecontrol - Deletes a control from the display panel
- setcontrolpos - Sets the position of a control
- getcontrolxpos - Returns the X pixel position of a control
- getcontrolypos - Returns the Y pixel position of a control
- setcontrolsize - Sets the size of a control
- getcontrolwidth - Returns the width of a control
- getcontrolheight - Returns the height of a control
- setcontrolblendconst - Sets the alphablending factor used for drawing a control
- getcontrolblendconst - Returns the alphablending constant factor used for a control
Individual control reference:
Important Note: Individual controls can be created either through the Panel Designer or through dynamic creation at runtime using the appropriate statements (eg: createbutton). Dynamically created controls cannot benefit from the 100% Configuration System, therefore unless you have a specific need to dynamically create the controls you should use the Panel Designer in preference. A Flash movie showing how to create and use controls with the Paenl Designer is available on the Media page. The Panel Designer reference is at this page, and contains a link to a downloadable sample that demonstrates the Panel Designer system.
- Buttons
- Edit Boxes
- Images
- List Boxes
- Memo Boxes (multiline edit controls)
- Scrollbars
- Text