bohr 2239
- returned possibility of using styles hoping the patch will be accepted
U trunk/sandbox/arcticChat/ArcticChatMain2.hx
-- Provided by, CVSDude, http://cvsdude.com. Professional CVS and SVN outsourcing --
Modified: trunk/sandbox/arcticChat/ArcticChatMain2.hx
===================================================================
--- trunk/sandbox/arcticChat/ArcticChatMain2.hx 2006-11-24 16:34:37 UTC (rev 2238)
+++ trunk/sandbox/arcticChat/ArcticChatMain2.hx 2006-11-24 18:13:46 UTC (rev 2239)
@@ -37,6 +37,8 @@
rows = [];
var header = Picture("chatHeader5.swf", 400, 20, 1);
var header2 = Background(0xabcdef, header, 100); //?aplpha, ?roundradius
+ var styleIW = {border : false, textColor : 0xffffff};
+
//var screen = Border (0, 0, Background(0xffffff,
@@ -45,7 +47,7 @@
Id("header", header2),
//ConstrainWidth(200, 200,
Background(0xffffff, Id("elements", Filler)),
- Id("inputWindow",TextInput("text2input", 390, 20, function(str){message=str; return true; /*trace(message);*/} /*function(str){trace(str); me.addRow(str); return true;}*/, null, null, 0xabcdef)),
+ Id("inputWindow",TextInput("text2input", 390, 20, function(str){message=str; return true; /*trace(message);*/}, styleIW, null, null, 0xabcdef, true)),
//Arctic.makeSimpleButton("Add row", function() { me.addRow(message); }, 50),
//Arctic.makeSimpleButton("Close", function() { me.remove(); }, 50)
] )) );
@@ -66,7 +68,7 @@
flash.Selection.setFocus(inputRaw.ti);
- var keyListener = {
+ var keyListener = {
onKeyDown : function() {
if (flash.Key.getCode() == flash.Key.ENTER) {
//trace(message);
@@ -76,7 +78,7 @@
me.addRow(message);
//trace(me.chatLineRaw.ti);
me.chatLineRaw.ti.border = false;
- me.arcticView.update("inputWindow", TextInput("1", 400, 20, function(str){message=str; return true; /*trace(message);*/}, null, null, 0xabcdef));
+ me.arcticView.update("inputWindow", TextInput("1", 400, 20, function(str){message=str; return true; /*trace(message);*/}, styleIW, null, null, 0xabcdef, false));
message="";
flash.Selection.setFocus(inputRaw.ti);
inputRaw.ti.border = false;
@@ -94,12 +96,14 @@
}
private function addRow(msg : String) {
+ var styleCW = {border : false, textColor : 0x1D3181, type : "Dynamic"};
//rows.push("Another line " + rows.length);
rows.push(msg);
var elements = [];
for (r in rows) {
//elements.push(Text(r));
- elements.push(Id("chatLine", TextInput("<b>"+r+"</b>", 390, 20, null,null,null, 0xffffff)));
+
+ elements.push(Id("chatLine", TextInput("<b>"+r+"</b>", 390, 20, null, styleCW, null,null, 0xffffff, false)));
}
elements.push(Filler);
arcticView.update("elements", LineStack(elements, rows.length) );