语言

Menu
Sites
Language
How to display Check widget with text label?

Hello,

I need to show text label with description near the Check widget.

I tried

// Set the check label 
elm_object_text_set(check, "Check label");

as suggested in the documentation:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/widget_check.htm

But this doesn’t work. I don’t see any text around the Check widget. Can anyone help me?

响应

9 回复
Daniel Juyung Seo

Hello, thanks for spotting that.

It looks like a bug in theme. It should work well. I will report this to theme team.

In the mean time, you can just use elm_box and pack label and check inside it.

Thanks.

Daniel Juyung Seo

I got a feedback from theme team.

This was the requirement from UX team that text part should not get a response when the text was clicked. So they just removed the text part from check button.

So please use box and label widget as I guided above.

 

But this needs to be fixed in the next Tizen version IMO.

Alex Ashirov

Hi,

Thank you very much for such detailed response. I will use workaround suggested by you (label + check) while the issue isn’t fixed.

Alex Ashirov

Hi,

Update. I experienced the same problems like Eric Satkimbaev and was going use solution suggested by you (label + check packed into box). But it seems I have found one more workaround. I noticed that Multibuttonentry from UIControls sample successfully uses elm_object_text_set with checkbox widget.  But in this case you need to use

elm_object_style_set(check,"popup");

Though, the "popup" style isn’t documented, but text labels work with this style of checks.

Daniel Juyung Seo

Hahaha that's nice!

"popup" style could be a good workaround then :)

Alex Ashirov

Hi,

I have just checked the issue with the new Tizen SDK 2.3.0 rev.2. It seems that the issue is still reproducible. I am not able create label with text using the elm_object_text_set() function.

daniel kim

Hi,

I guess that this will be fixed in the next version of SDK and we may donwload new SDK within two months as Samsung recently released new one by around two month intervals.

daniel kim

Hi,

I guess that this will be fixed in the next version of SDK and we may donwload new SDK within two months as Samsung recently released new one by around two month intervals.

Ferenc Engárd

It's 2021 and seems this problem still persists, at least I cannot make it work -- tried both with style "popup" and "small popup" as per documentation here:

https  ://  docs.tizen.org/application/native/guides/ui/efl/wearable/component-check/

Tested on circular wearable, API version 5.5 emulator