summaryrefslogtreecommitdiff
path: root/pages/develop/tutorials
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-11-16 05:39:05 -0800
committerapache <apache@e5-web1.enlightenment.org>2018-11-16 05:39:05 -0800
commit5913e56ac0e69ba3dc90851d5b2961952d3dd611 (patch)
treeea520445ab7baecb6e47aebbad0d47e9856b3dcf /pages/develop/tutorials
parent999114448f68341b3627ed221e91005f19765a23 (diff)
Wiki page texteditor-cs.md changed with summary [texteditor: adapt to API changes in Efl.Ui.Popup] by Xavi Artigas
Diffstat (limited to 'pages/develop/tutorials')
-rw-r--r--pages/develop/tutorials/csharp/texteditor-cs.md.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/pages/develop/tutorials/csharp/texteditor-cs.md.txt b/pages/develop/tutorials/csharp/texteditor-cs.md.txt
index 5f73ea6f5..ae122b559 100644
--- a/pages/develop/tutorials/csharp/texteditor-cs.md.txt
+++ b/pages/develop/tutorials/csharp/texteditor-cs.md.txt
@@ -86,14 +86,14 @@ public class TextEditor
86 // Shows a modal message popup with an "OK" button 86 // Shows a modal message popup with an "OK" button
87 private void ShowMessage(string message) 87 private void ShowMessage(string message)
88 { 88 {
89 new efl.ui.Popup_Alert_Text (win, (efl.ui.IPopup_Alert_Text epopup) => { 89 new efl.ui.Text_Alert_Popup (win, (efl.ui.IText_Alert_Popup epopup) => {
90 epopup.SetText(message); 90 epopup.SetText(message);
91 epopup.SetExpandable(new eina.Size2D(200,200)); 91 epopup.SetExpandable(new eina.Size2D(200,200));
92 epopup.SetButton(efl.ui.Popup_Alert_Button.Positive, "OK", null); 92 epopup.SetButton(efl.ui.Alert_Popup_Button.Positive, "OK", null);
93 epopup.ButtonClickedEvt += 93 epopup.ButtonClickedEvt +=
94 (object sender, efl.ui.Popup_Alert.ButtonClickedEvt_Args ea) => { 94 (object sender, efl.ui.Alert_Popup.ButtonClickedEvt_Args ea) => {
95 // Dismiss popup when the button is clicked 95 // Dismiss popup when the button is clicked
96 ((efl.ui.IPopup_Alert_Text)sender).SetParent(null); 96 ((efl.ui.IText_Alert_Popup)sender).SetParent(null);
97 }; 97 };
98 }); 98 });
99 } 99 }
@@ -543,7 +543,7 @@ Applications typically convey important informational or error messages through
543 543
544![Popup message](/_media/playground/texteditor-app/image02.png) 544![Popup message](/_media/playground/texteditor-app/image02.png)
545 545
546To achieve this EFL uses the `efl.ui.Popup` class and its derivatives, for instance, the `efl.ui.Popup_Alert_Text` used in this tutorial. This class implements a popup that contains text and optional configurable buttons. 546To achieve this EFL uses the `efl.ui.Popup` class and its derivatives, for instance, the `efl.ui.Text_Alert_Popup` used in this tutorial. This class implements a popup that contains text and optional configurable buttons.
547 547
548This is how it's used in this tutorial, in the `ShowMessage()` method: 548This is how it's used in this tutorial, in the `ShowMessage()` method:
549 549
@@ -551,14 +551,14 @@ This is how it's used in this tutorial, in the `ShowMessage()` method:
551 // Shows a modal message popup with an "OK" button 551 // Shows a modal message popup with an "OK" button
552 private void ShowMessage(string message) 552 private void ShowMessage(string message)
553 { 553 {
554 new efl.ui.Popup_Alert_Text (win, (efl.ui.IPopup_Alert_Text epopup) => { 554 new efl.ui.Text_Alert_Popup (win, (efl.ui.IText_Alert_Popup epopup) => {
555 epopup.SetText(message); 555 epopup.SetText(message);
556 epopup.SetExpandable(new eina.Size2D(200,200)); 556 epopup.SetExpandable(new eina.Size2D(200,200));
557 epopup.SetButton(efl.ui.Popup_Alert_Button.Positive, "OK", null); 557 epopup.SetButton(efl.ui.Alert_Popup_Button.Positive, "OK", null);
558 epopup.ButtonClickedEvt += 558 epopup.ButtonClickedEvt +=
559 (object sender, efl.ui.Popup_Alert.ButtonClickedEvt_Args ea) => { 559 (object sender, efl.ui.Alert_Popup.ButtonClickedEvt_Args ea) => {
560 // Dismiss popup when the button is clicked 560 // Dismiss popup when the button is clicked
561 ((efl.ui.IPopup_Alert_Text)sender).SetParent(null); 561 ((efl.ui.IText_Alert_Popup)sender).SetParent(null);
562 }; 562 };
563 }); 563 });
564 } 564 }