hello-gui: make text non-editable
Non-editable was the default when these tutorials were created, but not anymore.
This commit is contained in:
parent
9ed9d94501
commit
4c2c569c7e
|
@ -31,6 +31,7 @@ _gui_setup()
|
||||||
efl_add(EFL_UI_TEXT_CLASS, box,
|
efl_add(EFL_UI_TEXT_CLASS, box,
|
||||||
efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
|
efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
|
||||||
efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
|
efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
|
||||||
|
efl_text_interactive_editable_set(efl_added, EINA_FALSE),
|
||||||
efl_gfx_hint_weight_set(efl_added, 1.0, 0.9),
|
efl_gfx_hint_weight_set(efl_added, 1.0, 0.9),
|
||||||
efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
|
efl_gfx_hint_align_set(efl_added, 0.5, 0.5),
|
||||||
efl_gfx_hint_fill_set(efl_added, EINA_FALSE, EINA_FALSE),
|
efl_gfx_hint_fill_set(efl_added, EINA_FALSE, EINA_FALSE),
|
||||||
|
|
|
@ -34,7 +34,8 @@ public class Example : Efl.Csharp.Application
|
||||||
var label = new Efl.Ui.Text(box);
|
var label = new Efl.Ui.Text(box);
|
||||||
// Set its content and customize it
|
// Set its content and customize it
|
||||||
label.SetText("Hello World. This is an Efl.Ui application!");
|
label.SetText("Hello World. This is an Efl.Ui application!");
|
||||||
label.SetSelectionAllowed(false);
|
label.Editable = false;
|
||||||
|
label.SelectionAllowed = false;
|
||||||
label.SetHintWeight(1.0, 0.9);
|
label.SetHintWeight(1.0, 0.9);
|
||||||
label.SetHintFill(false, false);
|
label.SetHintFill(false, false);
|
||||||
label.SetHintAlign(0.5, 0.5);
|
label.SetHintAlign(0.5, 0.5);
|
||||||
|
|
Loading…
Reference in New Issue