Author: everaldo
Date: 2007-06-13 06:08:50 -0400 (Wed, 13 Jun 2007)
New Revision: 79392
Added:
trunk/moon/plugin/test/circle.xaml
trunk/moon/plugin/test/emote.xaml
Removed:
trunk/moon/plugin/test/index.xaml
Modified:
trunk/moon/plugin/test/ChangeLog
trunk/moon/plugin/test/index.html
Log:
2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
* index.html: Improve test page to show a textare with some debug
information. Also create two controls, one using embed tag and another
using the object tag.
* circle.xaml: Added.
* index.xaml: Renamed to emote.xaml
Modified: trunk/moon/plugin/test/ChangeLog
===================================================================
--- trunk/moon/plugin/test/ChangeLog 2007-06-13 09:54:49 UTC (rev 79391)
+++ trunk/moon/plugin/test/ChangeLog 2007-06-13 10:08:50 UTC (rev 79392)
@@ -1,3 +1,13 @@
+2007-06-13 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * index.html: Improve test page to show a textare with some debug
+ information. Also create two controls, one using embed tag and another
+ using the object tag.
+
+ * circle.xaml: Added.
+
+ * index.xaml: Renamed to emote.xaml
+
2007-06-09 Everaldo Canuto <[EMAIL PROTECTED]>
* index.xaml: Improve xaml demo.
Added: trunk/moon/plugin/test/circle.xaml
===================================================================
--- trunk/moon/plugin/test/circle.xaml 2007-06-13 09:54:49 UTC (rev 79391)
+++ trunk/moon/plugin/test/circle.xaml 2007-06-13 10:08:50 UTC (rev 79392)
@@ -0,0 +1,5 @@
+<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
+
+ <Ellipse Fill="#ffffb839" Stroke="#ff9c8c0a" StrokeThickness="20"
Canvas.Left="50" Canvas.Top="50" Width="100" Height="100" />
+
+</Canvas>
Copied: trunk/moon/plugin/test/emote.xaml (from rev 79379,
trunk/moon/plugin/test/index.xaml)
Modified: trunk/moon/plugin/test/index.html
===================================================================
--- trunk/moon/plugin/test/index.html 2007-06-13 09:54:49 UTC (rev 79391)
+++ trunk/moon/plugin/test/index.html 2007-06-13 10:08:50 UTC (rev 79392)
@@ -1,21 +1,51 @@
<html>
+<head>
+ <title>Moonlight Browser Plugin</title>
+</head>
+
<body bgcolor="gray">
-<h1>Moonlight Browser Plugin</h3>
+ <h2>Moonlight Browser Plugin</h2>
-<embed src="index.xaml" type="application/ag-plugin" width="80%"
height="300"></embed>
+ <form name="form">
+ <textarea id="outputtext" rows="10" cols="80"></textarea>
+ </form>
-<script>
+ <embed id="control1" src="circle.xaml" type="application/ag-plugin"
width="50%" height="200">
+ </embed>
- var embed = document.embeds[0];
- var setti = embed.settings;
+ <object id="control2" width="200" height="200"
type="application/ag-plugin">
+ <param name="background" value="#ffebcd" />
+ <param name="enableFramerateCounter" value="true" />
+ <param name="enableHtmlAccess" value="true" />
+ <param name="initParams" value="paramValue1, paramValue2" />
+ <param name="maxFrameRate" value="30" />
+ <param name="onError" value="myErrorHandler" />
+ <param name="onLoad" value="onLoad" />
+ <param name="source" value="emote.xaml" />
+ <param name="windowless" value="false" />
+ </object>
- alert(embed.settings.version);
+ <script>
+ function print (text) {
+ document.form.outputtext.value += text + "\n";
+ }
-</script>
+ var control1 = document.getElementById("control1");
+ var control2 = document.getElementById("control2");
-<br><br>
+ // settings.version
+ print ("control1.settings.version: " +
control1.settings.version);
+ print ("control2.settings.version: " +
control2.settings.version);
+ print ("---");
+ // settings.version
+ print ("control1.content.actualWidth: " +
control1.content.actualWidth);
+ print ("control2.content.actualWidth: " +
control2.content.actualWidth);
+ print ("---");
+
+ </script>
+
</body>
</html>
Deleted: trunk/moon/plugin/test/index.xaml
===================================================================
--- trunk/moon/plugin/test/index.xaml 2007-06-13 09:54:49 UTC (rev 79391)
+++ trunk/moon/plugin/test/index.xaml 2007-06-13 10:08:50 UTC (rev 79392)
@@ -1,9 +0,0 @@
-<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
-
- <Ellipse Fill="#ffffb839" Stroke="#ff9c8c0a" StrokeThickness="3"
Canvas.Left="50" Canvas.Top="50" Width="100" Height="100" />
- <Ellipse Fill="#ff000000" Stroke="#ff000000" StrokeThickness="3"
Canvas.Left="80" Canvas.Top="70" Width="12" Height="23" />
- <Ellipse Fill="#ff000000" Stroke="#ff000000" StrokeThickness="3"
Canvas.Left="106" Canvas.Top="70" Width="12" Height="23" />
-
- <Ellipse Fill="#222222" Stroke="#222222" StrokeThickness="0"
Canvas.Left="75" Canvas.Top="110" Width="50" Height="30" />
-
-</Canvas>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches