Blog about programming and client applications. Target Programming languages are JavaFX, Visage, HTML 5+ Javascript or even command line apps :-D
segunda-feira, 29 de agosto de 2011
VisageFX Label First Test
var img = Image{url: "http://www.celgeek.com.br/wp-content/uploads/2011/05/javafx_logo_color_1.jpg"}
function imgView():ImageView{
ImageView{
fitWidth: 50 fitHeight: 25
image: img
}
}
Stage {
title: "Testing Label And Font"
visible: true
Scene {
width: 220
height: 200
fill: Color.LIGHTBLUE
Group{
[
Label{
text: "Simple Label with Graphics"
underline:true
wrapText: true
alignment: Pos.TOP_LEFT
textFill: Color.RED
layoutX: 10
layoutY: 5
graphic: imgView()
}
Label{
text: "Other Label"
wrapText: true
textFill: Color.RED
layoutX: 10
layoutY: 35
graphic: imgView()
contentDisplay: ContentDisplay.RIGHT;
}
Label{
text: "Label with font"
wrapText: true
textFill: Color.BLACK
layoutX: 10
layoutY: 65
font: Font.font("Arial", 10);
}
Label{
text: "Label with another font"
wrapText: true
textFill: Color.BROWN
layoutX: 10
layoutY: 85
font: Font.font("Comic Sans MS", 15);
}
Label{
text: "Label with text bold and italic"
wrapText: true
textFill: Color.BROWN
layoutX: 10
layoutY: 105
font: Font.font("Verdana",FontWeight.BOLD, FontPosture.ITALIC, 10);
}
]
}
}
}
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário