git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@33 af16638f-c34d-0410-8cfa-b39d5352b314

This commit is contained in:
shayannegari 2008-06-20 17:36:30 +00:00
parent 3f0750c6d1
commit a4904dcd56

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<MDIWindow xmlns="flexlib.mdi.containers.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
width="400" height="300" showCloseButton="false">
width="400" height="300" showCloseButton="false"
click="setFocusOn(this.txtMsg || this.txtChatBox)"
focusEnd="setFocusOff()" >
<mx:Script>
<![CDATA[
@ -11,6 +13,8 @@
import org.bigbluebutton.modules.chat.model.vo.MessageVO;
import org.bigbluebutton.modules.chat.view.ChatWindowMediator;
import org.bigbluebutton.modules.chat.model.vo.*;
import mx.core.UIComponent;
public static const TITLE:String = "Public Chat";
private var sizeM:Menu;
@ -25,6 +29,27 @@
rm.getUserid() + "]</b> " + rm.message + "</font>";
txtChatBox.htmlText += newMessage + "\n";
}
public function setFocusOn(component:UIComponent):void
{
if (component.id == "txtMsg") {
component.setFocus();
component.drawFocus(true);
}
else
{
this.txtMsg.setFocus();
this.txtMsg.drawFocus(true);
}
//this.txtMsg.focusManager.showFocusIndicator = true;
}
public function setFocusOff():void
{
//this.txtMsg.setFocus();
this.txtMsg.cursorManager.hideCursor();
this.txtMsg.drawFocus(false);
//this.txtMsg.cursorManager.removeAllCursors();
}
public function sendMessages():void
{
@ -41,7 +66,7 @@
]]>
</mx:Script>
<mx:TextArea id="txtChatBox" editable="false" width="100%" height="100%" updateComplete="updateScroll()"/>
<mx:TextArea id="txtChatBox" editable="false" width="100%" height="100%" focusEnabled="false" updateComplete="updateScroll()"/>
<mx:ApplicationControlBar width="100%" height="10%">