语言

Menu
Sites
Language
How do I insert a special character into a button?

Hi all,
I want to know, I want to express the special character buttons (&).

Evas_Object * button = elm_button_add (layout);
elm_object_text_set (button, (char *) "&");

elm_object_text_set (button, (char *) "\&");

elm_object_text_set (button, (char *) "\\&");

elm_object_text_set (button, (char *) "&&");

elm_object_text_set (button, (char *) "&&&");

I can not see all.

elm_object_text_set (button, (char *) "*");  <= ~This is visible.

I can not show the '&' character on the button.
How can I do this?

编辑者为: jeonghun cho 25 3月, 2015

响应

1 回复
Alex Ashirov

Hi,

Please try the folowing:

elm_object_text_set (btn, "&amp;");