Centrallix - It's Different than what you Think
Home   |   Technology   |   Screen Shots   |   Download   |   Documentation   |   History   |   For Developers

Search...


Search For:

Index...


Centrallix Documentation
1. Getting Started
2. Applications Overview
3. Application Components
4. Reports Overview
5. Report Components
6. SQL Language
7. Process Modeling
8. Application Modeling
9. Role-Based Security
10. Business Logic Modeling
11. Other Objects
12. External API's
13. Internal API's

widget/radiobuttonpanel


radiobuttonpanel :: A visual widget displaying a set of 'radio buttons'

Metadata:
type:widget/radiobuttonpanel
visual: yes
container: no
form element: yes


Overview:

A radio button panel widget is a form element used to create a set of radio buttons on screen. Only one radio button may be selected at a time. When the form goes into query mode the radio buttons change into checkboxes and more than one can be selected at a time.


Usage:

The radio button panel can be placed inside of any visual container, and will automatically attach itself to a form widget if it is inside of one (directly or indirectly). The "widget/radiobuttonpanel" is the main widget, and can contain any number of "widget/radiobutton" widgets which specify the choices which will be present on the panel. No other visual widgets can be contained within a radio button panel.

Note: form widget interaction was not yet implemented as of the time of writing of this document.


Properties:

PropertyTypeDescription
fieldname string Name of the column in the datasource you want to reference.
background string A background image for the radio button panel.
bgcolor string A color, RGB or named, for the panel background. If neither bgcolor nor background transparent.
height integer height, in pixels, of the panel.
outline_background string An image to be used for the rectangular border drawn around the radio buttons.
outline_bgcolor string The color, RGB or named, of the rectangular border drawn around the radio buttons.
textcolor string The color, RGB or named, of the text within the panel. Default: "black".
title string The title for the radio button panel, which appears superimposed on the rectangular border around the radio buttons.
width integer width, in pixels, of the panel.
x integer x-coordinate of the upper left corner of the panel, default is 0.
y integer y-coordinate of the upper left corner of the panel, default is 0.


Child Properties:

(of widget/radiobutton child widgets)

PropertyTypeDescription
label string The text label to appear beside the radio button.
selected boolean the radio button is initially selected or not. Should only be set on one radio Default;"false".
value string The value of the selected item


Sample Code:

$Version=2$
// Here are some radio buttons...
testradio "widget/radiobuttonpanel" 
	{
	x=20; y=20;
	width=150; height=80;
	title="test";
	bgcolor="#ffffff";
	label1 "widget/radiobutton" { label="basketball";selected="true"; }
	label2 "widget/radiobutton" { label="is fun"; }
	}




Comments...


(none yet)

Add a Comment...


Your Name:
Comment:


(c) 2001-2020 LightSys Technology Services, Inc. All trademarks are property of their respective owners.

Project Hosting Provided By:
Hosted by Sourceforge