summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src/focus_main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/focus_main.cs')
-rw-r--r--reference/csharp/ui/src/focus_main.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 494c86a..cc806f7 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -32,14 +32,14 @@ public class Example : Efl.Csharp.Application
32 checkbox.SetText("Check " + i); 32 checkbox.SetText("Check " + i);
33 checkbox.SetHintAlign(0.5, 0.5); 33 checkbox.SetHintAlign(0.5, 0.5);
34 checkbox.FocusChangedEvt += FocusChangedCb; 34 checkbox.FocusChangedEvt += FocusChangedCb;
35 vbox.DoPack(checkbox); 35 vbox.Pack(checkbox);
36 if (i == 0) first_checkbox = checkbox; 36 if (i == 0) first_checkbox = checkbox;
37 }; 37 };
38 38
39 // Create an horizontal box to contain the two buttons 39 // Create an horizontal box to contain the two buttons
40 var hbox = new Efl.Ui.Box(vbox); 40 var hbox = new Efl.Ui.Box(vbox);
41 hbox.SetDirection(Efl.Ui.Dir.Horizontal); 41 hbox.SetDirection(Efl.Ui.Dir.Horizontal);
42 vbox.DoPack(hbox); 42 vbox.Pack(hbox);
43 43
44 // Create a "Focus Mover" button 44 // Create a "Focus Mover" button
45 var button = new Efl.Ui.Button(hbox); 45 var button = new Efl.Ui.Button(hbox);
@@ -50,7 +50,7 @@ public class Example : Efl.Csharp.Application
50 // Manually transfer focus to the first check box 50 // Manually transfer focus to the first check box
51 Efl.Ui.Focus.Util.Focus(first_checkbox); 51 Efl.Ui.Focus.Util.Focus(first_checkbox);
52 }; 52 };
53 hbox.DoPack(button); 53 hbox.Pack(button);
54 54
55 // Create a Quit button 55 // Create a Quit button
56 button = new Efl.Ui.Button(hbox); 56 button = new Efl.Ui.Button(hbox);
@@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application
60 Console.WriteLine("Clicked Quit"); 60 Console.WriteLine("Clicked Quit");
61 Efl.Ui.Config.Exit(); 61 Efl.Ui.Config.Exit();
62 }; 62 };
63 hbox.DoPack(button); 63 hbox.Pack(button);
64 64
65 // Show the focus highlight 65 // Show the focus highlight
66 win.SetFocusHighlightEnabled(true); 66 win.SetFocusHighlightEnabled(true);