Hi,

I tried to integrate three20 Objective-C based component with mono. I
performed following steps

1) Download three20.dll and added as reference. This dll has been build by
following these steps

$ /Developer/MonoTouch/usr/bin/btouch three20.cs -s:enum.cs

2) Download three20 objective-c source and build it to make libThree20*.a
files

3) Add these files in monotouch project

4) Add following arguments in project properties

-gcc_flags "-L${ProjectDir} -lThree20 -lThree20Core -lThree20Network
-lThree20Style -lThree20UICommon -lThree20UINavigator -lThree20UI -ObjC
-all_load"


5) Write following code to test
                public override void ViewDidLoad ()
{
base.ViewDidLoad ();
bt = new TTButton();
bt.SetTitle("Hello Button", UIControlState.Normal);
bt.Frame = new System.Drawing.RectangleF(10,150,50,30);
lbl = new TTLabel();
lbl.Text ="Three20 Label";
lbl.BackgroundColor = UIColor.Blue;
lbl.Frame = new System.Drawing.RectangleF(10,10,50,30);
lbl1 = new UILabel();
lbl1.Text ="Normal Label";
lbl1.Frame = new System.Drawing.RectangleF(10,100,50,30);
 this.View.AddSubview(lbl1);
this.View.AddSubview(lbl);
this.View.AddSubview(bt);
}

Good news is that it is compiling and running but bad news is that I am not
able to see text of label instead I am seeing blue color rectangle (button
is not visible also). This indicates that things are working but if somebody
have prior experience with this please guide me through.
I was not able to get a single running project on mono using Three20. If
anybody can point out than this would be really helpful for me.

Yawar
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to