[Mono-list] SWF rendering in 1.1.10
Bradley, Peter
PBradley at uwic.ac.uk
Tue Nov 15 02:32:21 EST 2005
Hi Peter,
Here's the code (you will notice that it is code produced from VS):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Configuration;
using System.Runtime.Remoting;
namespace Msc.RemoteSums
{
/// <summary>
/// Summary description for RemoteSumsApiClientForm.
/// </summary>
public class RemoteSumsClientApiForm : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox tbOperand1;
private System.Windows.Forms.ComboBox cbOperator;
private System.Windows.Forms.TextBox tbOperand2;
private System.Windows.Forms.Label lblEquals;
private System.Windows.Forms.TextBox tbAnswer;
private System.Windows.Forms.Button btnCalculate;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public RemoteSumsApiClientForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
RemotingConfiguration.Configure("RemoteSumsApiClient.exe.config");
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
26
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tbOperand1 = new System.Windows.Forms.TextBox();
this.cbOperator = new System.Windows.Forms.ComboBox();
this.tbOperand2 = new System.Windows.Forms.TextBox();
this.lblEquals = new System.Windows.Forms.Label();
this.tbAnswer = new System.Windows.Forms.TextBox();
this.btnCalculate = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// tbOperand1
//
this.tbOperand1.Location = new System.Drawing.Point(16, 40);
this.tbOperand1.Name = "tbOperand1";
this.tbOperand1.TabIndex = 0;
this.tbOperand1.Text = "";
//
// cbOperator
//
this.cbOperator.Font = new System.Drawing.Font("Microsoft Sans
Serif", 8.25F, System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.cbOperator.Items.AddRange(new object[] {
"Select",
"+",
"-",
"*",
"/"});
this.cbOperator.Location = new System.Drawing.Point(120, 40);
this.cbOperator.Name = "cbOperator";
this.cbOperator.Size = new System.Drawing.Size(64, 21);
this.cbOperator.TabIndex = 1;
this.cbOperator.Text = "Select";
//
// tbOperand2
//
this.tbOperand2.Location = new System.Drawing.Point(192, 40);
this.tbOperand2.Name = "tbOperand2";
this.tbOperand2.TabIndex = 2;
this.tbOperand2.Text = "";
//
// lblEquals
//
this.lblEquals.Location = new System.Drawing.Point(304, 40);
this.lblEquals.Name = "lblEquals";
this.lblEquals.Size = new System.Drawing.Size(16, 16);
this.lblEquals.TabIndex = 3;
this.lblEquals.Text = "=";
//
// tbAnswer
//
this.tbAnswer.Location = new System.Drawing.Point(328, 40);
this.tbAnswer.Name = "tbAnswer";
this.tbAnswer.TabIndex = 4;
this.tbAnswer.Text = "";
//
// btnCalculate
//
this.btnCalculate.Location = new System.Drawing.Point(184, 88);
this.btnCalculate.Name = "btnCalculate";
27
this.btnCalculate.TabIndex = 5;
this.btnCalculate.Text = "Calculate";
this.btnCalculate.Click +=
new System.EventHandler(this.btnCalculate_Click);
//
// RemoteSumsClientForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(448, 134);
this.Controls.Add(this.btnCalculate);
this.Controls.Add(this.tbAnswer);
this.Controls.Add(this.tbOperand2);
this.Controls.Add(this.tbOperand1);
this.Controls.Add(this.lblEquals);
this.Controls.Add(this.cbOperator);
this.Name = "RemoteSumsClientForm";
this.Text = "Remote Sums";
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new RemoteSumsApiClientForm());
}
private void btnCalculate_Click(object sender, System.EventArgs e)
{
try
{
long lres;
int ires;
double dres;
int x = int.Parse(tbOperand1.Text);
int y = int.Parse(tbOperand2.Text);
IRemoteSums r = (IRemoteSums) RemotingServices.Connect
(typeof(IRemoteSums),
ConfigurationSettings.AppSettings["serverUrl"]);
switch (cbOperator.Text)
{
case "+":
lres = r.Add(x, y);
tbAnswer.Text = lres.ToString();
break;
case "-":
ires = r.Sub(x, y);
tbAnswer.Text = ires.ToString();
break;
case "*":
lres = r.Mult(x, y);
tbAnswer.Text = lres.ToString();
break;
case "/":
dres = r.Div(x, y);
28
tbAnswer.Text = dres.ToString();
break;
}
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
}
}
}
}
Cheers
Peter
-----Original Message-----
From: Peter Dennis Bartok [mailto:peter at novonyx.com]
Sent: 14 November 2005 22:33
To: peter; Mono List
Subject: Re: [Mono-list] SWF rendering in 1.1.10
Peter,
Can you provide some testcode, I don't see the issue here (am using NLD
which is similar to Suse 9.3) Also, maybe you can try the
winforms/combobox
and winforms/listbox samples to see if it happens with those as well?
Cheers,
Peter
-----Original Message-----
From: "peter" <apvx95 at dsl.pipex.com>
To: "Mono List" <mono-list at lists.ximian.com>
Date: 12 November, 2005 10:44
Subject: [Mono-list] SWF rendering in 1.1.10
>I have a little test SWF application. Since upgrading to 1.1.10 (on
>SuSE 9.3), the list box that it contains doesn't render properly. The
>little arrow to open the list is missing, although clicking on where it
>should be will still open the list.
>
>A screen dump is attached, which I hope (at 7Kb) is not too large.
>
>
>Peter
>
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list