Вы находитесь на странице: 1из 6

Rodeo Language Guide

Rodeo app & page properties:

textFont! font name


textColor! r,g,b
textSize! in pixels
backColor! r,g,b
backgroundImage! URL
backgroundRepeat! both / horizontal / vertical / off
borderColor! r,g,b ! (pages only)
borderWidth! in pixels! (pages only)

Button properties:

style! roundRect / rectangle / pinched / transparent


width! in pixels
height! in pixels
top ! in pixels
left! in pixels
textFont! font name
textColor! r,g,b
textSize! in pixels
textStyle! normal, bold, italic
textAlign! left / right / center
backColor! r,g,b
icon! URL
resizeIcon! true or false!(if true, will make the icon fit inside the button)
gradient! true / false
link! URL or action
showName! true or false
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the button to the front of the display
visible! true or false

Monday, 26 July 2010


Field properties:

style! rectangle / transparent


width! in pixels
height! in pixels
top ! in pixels
left! in pixels
textFont! font name
textColor! r,g,b
textSize! in pixels
textStyle! normal, bold, italic
textAlign! left / right / center
textHeight! in pixels
textWrap ! true or false
text! can be html also
helpText! appears grayed out in an empty field
filename! URL (for loading data from an external text or HTML file)
link! URL or action
editable! true or false
borderColor! r,g,b
borderWidth! in pixels
showBorder! true or false
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the field to the front of the display
visible! true or false

Popup properties:

style! rectangle / transparent


width! in pixels
height! in pixels
top ! in pixels
left! in pixels
textFont! font name
textColor! r,g,b
textSize! in pixels
textStyle! normal, bold, italic
textAlign! left / right / center
text! one item per line
defaultText! the text that will be selected in the popup by default
link! URL or action
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the popup to the front of the display
visible! true or false

Monday, 26 July 2010


Image properties:

width! in pixels (if left undefined, the width of the image will be used)
height! in pixels (if left undefined, the width of the image will be used)
top ! in pixels
left! in pixels
filename! URL of the image file
backColor! r,g,b
borderColor! r,g,b
borderWidth! in pixels
style! transparent or opaque
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the image to the front of the display
visible! true or false

Checkbox & Radio button properties:

width! in pixels
height! in pixels
top ! in pixels
left! in pixels
textFont! font name
textColor! r,g,b
textSize! in pixels
textStyle! normal, bold, italic
textAlign! left / right / center
backColor! r,g,b
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the button to the front of the display
link! URL or action
opacity! 0 to 100 (invisible to visible)
layer! higher numbers move the button to the front of the display
visible! true or false
state! on or off
radioGroup! radio buttons only, specifies which group the button is in

Monday, 26 July 2010


Table properties:

height! in pixels
width! not specified - calculated from column widths
top ! in pixels
left! in pixels
textFont! font name
textColor! r,g,b
textSize! in pixels
textStyle! normal, bold, italic
columnWidth! in pixels (default width)
rowHeight! in pixels
borderWidth! in pixels
showBorder! box, row, column, cell or off
borderColor! r,g,b (border around table)
dividerColor! r,g,b (borders between rows, columns or cells)
alternateRowColors! true or false (if true, uses row striping like iTunes)
backColor! r,g,b (only takes effect of alternateRowColors is false)
filename! URL of the tab-delimited data file
sortable! true or false
link! URL or action
layer! higher numbers move the button to the front of the display

! Properties for each column in a table:

! these are set using syntax like:


! set the width of column 1 of me to 150
!
! ! title! must be set for each column
! ! width! pixels
! ! textAlign! if not set, numeric columns will align right, others left
! ! visible! true or false

Monday, 26 July 2010


Actions:

answer "text to answer"


answer “text to answer” with “OK” or “Cancel”
! displays an information dialog
! “OK” or “Cancel” are the only options so far
!
ask "question to ask"
ask "question to ask" with “default answer”
! displays an entry dialog
! returns the result

go to or goto
! goto URL http://address.to.go.to
! go to page "name of page"
!
put “text to show”
put “some data” into field “Field Name”
put “some data” into tVariableName
! shows the text in the "message box" at the bottom of the window
! or puts the data into a named field
! or puts the data into a variable for use in a “test” (see Control Structures)

send
! send email to "somebody@somewhere.com"
! send email to "somebody@somewhere.com" with subject "Interesting email"

set
! set the [property name] of [object type] to [new setting]
! properties that can be set:
! textFont, textColor, textSize, textStyle, textAlign
! backColor
! borderColor, borderWidth, showBorder
! width, height, top, left
! opacity
! layer
! visible
! style (button & field)
! text (button, field & popup)
! icon (button)
! gradient (button)
! helpText (field)
! textHeight, textWrap (field)
! defaultText (popup)
! filename (image)
! state (checkbox & radio button)

Monday, 26 July 2010


! !
skype
! skype chat to “skype_username”
! skype call to “skype_username”

Notes for set & put:


! You cannot use a command that effectively combines a put and a set command e.g.
! ! set the text of field “A” to field “B”
! You must spread these commands over two lines:
! ! put field “B” into tTextData
! ! set the text of field “A” to tTextData

Control structures:

test tVarToTest
! case “name”
! ! answer “Jerry”
! ! exit test
! default
! ! ask “Whatʼs your name?
! ! put the result into tYourName
! ! answer “Your name is” && tYourName & “?”
end test

Monday, 26 July 2010

Вам также может понравиться