Wiki page csharp_tutorial changed with summary [Fix build errors owing to .SetSize API usage.] by Myoungwoon Roy Kim

This commit is contained in:
Myoungwoon Roy Kim 2018-06-26 23:03:09 -07:00 committed by apache
parent 72f4138ba9
commit b8afa0e6cb
1 changed files with 4 additions and 2 deletions

View File

@ -180,7 +180,8 @@ And create a new Window with auto-hide (the window is automatically hidden when
efl.ui.IWin win = new efl.ui.Win(null);
win.SetText("Hello, World!");
win.SetAutohide(true);
win.SetSize(240, 60);
//win.SetSize(240, 60);
win.SetSize(new eina.Size2D(240, 60));
win.SetVisible(true);
</code>
@ -188,7 +189,8 @@ Create a new Button (passing the newly created window as the parent), set new la
<code csharp>
efl.ui.IButton btn = new efl.ui.Button(win);
btn.SetText("Good-Bye, World!");
btn.SetSize(120, 30);
//btn.SetSize(120, 30);
btn.SetSize(new eina.Size2D(120, 30));
eina.Position2D pos;
pos.X = 60;
pos.Y = 15;