Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
578ef059
Commit
578ef059
authored
12 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- An example how to display textbox
parent
30953697
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/howtodiplaytextbox.mxml
+76
-0
76 additions, 0 deletions
.../bigbluebutton/modules/whiteboard/howtodiplaytextbox.mxml
with
76 additions
and
0 deletions
bigbluebutton-client/src/org/bigbluebutton/modules/whiteboard/howtodiplaytextbox.mxml
0 → 100755
+
76
−
0
View file @
578ef059
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx=
"http://ns.adobe.com/mxml/2009"
xmlns:s=
"library://ns.adobe.com/flex/spark"
xmlns:mx=
"library://ns.adobe.com/flex/mx"
minWidth=
"1024"
minHeight=
"768"
>
<fx:Script>
<![CDATA[
import
mx
.
controls
.
Alert
;
import
mx
.
controls
.
Label
;
import
mx
.
core
.
UIComponent
;
public
var
tb
:
TextField
=
new
TextField
()
;
public
function
clickHandler
(
clickEvent
:
Event
)
:
void
{
// Alert.show("Event Type:" + clickEvent.type + " came from:" + clickEvent.currentTarget.id);
Me
.
visible
=
false
;
var
tbw
:
UIComponent
=
new
UIComponent
()
;
// drawing a white rectangle
// tbw.graphics.beginFill(0xFFFFFF); // white
// tbw.graphics.drawRect(0,0,300,20); // x, y, width, height
// tbw.graphics.endFill();
// drawing a black border
// tbw.graphics.lineStyle(2, 0x000000, 100); // line thickness, line color (black), line alpha or opacity
// tbw.graphics.drawRect(0,0,300,20); // x, y, width, height
// var textfield:TextField = new TextField()
// textfield.text = "Hi there!"
tbw
.
width
=
600
;
tbw
.
height
=
300
;
tbw
.
x
=
50
;
tbw
.
y
=
50
;
tbw
.
addChild
(
tb
)
;
// tb.autoSize = TextFieldAutoSize.LEFT;
tb
.
wordWrap
=
true
;
tb
.
width
=
600
;
tb
.
height
=
300
;
tb
.
x
=
0
;
tb
.
y
=
0
;
tb
.
border
=
true
;
// tb.background = true;
// tb.backgroundColor = 0xFF0000;
tb
.
text
=
"Hello asbcdefsdfsd sdfsdfsdf "
;
var
format
:
TextFormat
=
new
TextFormat
()
;
format
.
font
=
"Verdana"
;
format
.
color
=
0xFF0000
;
format
.
size
=
24
;
// format.underline = true;
tb
.
defaultTextFormat
=
format
;
tb
.
setTextFormat
(
format
)
;
dc
.
addChild
(
tbw
)
;
// var lb:Label = new Label();
// lb.text = "BigBlueButton";
// vb.addChildAt(lb, 1);
//
// var mbox:MessageBox = new MessageBox();
// dc.addChild(mbox);
}
]]>
</fx:Script>
<mx:VBox
id=
"vb"
width=
"100%"
height=
"100%"
>
<s:Button
id=
"Me"
label=
"Handle Click"
click=
"clickHandler(event)"
/>
<mx:Canvas
id=
"dc"
width=
"100%"
height=
"100%"
backgroundColor=
"blue"
>
<mx:Text
text=
"Foo bar"
x=
"400"
y=
"300"
/>
<!--mx:TextArea text="This is a text area" borderColor="black" x="100" y="100" height="500" width="400"/-->
</mx:Canvas>
</mx:VBox>
</s:Application>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment