Languages

Menu
Sites
Language
Evas Textblock

Hello, I trying to display on TV a text with evas textblock, but it does not work. I don't know if I am doing it wrong, but first I add the textblock to the parent window (with evas_object_textblock_add), I set the text (through evas_object_textblock_text_markup_set) and show on the screen (with evas_object_show). There are no code snippets in the docs about textblock, only descriptions what it is and for each function, so I can't see if I need to change something. 

What I can say is that elm_flux_textbox texts'' display on TV normally. 

May somebody help me, please?

 

 

Responses

2 Replies
Norris Jonathan

One common reason a `TextBlock` might not display is if it doesn’t have a size or is positioned outside the visible area of the screen. Make sure you specify both the size and position of the `TextBlock` after adding it to the parent window.

You can fix it as follows:

evas_object_move(textblock, x_position, y_position); // Set the position
evas_object_resize(textblock, width, height); // Set the size                                                        

                                                                                                                                                                                                                                                         

 

 

Kenvante Porter

It sounds like you're having trouble with the Evas Textblock object in your application. While Evas Textblock can be somewhat tricky due to its reliance on markup and styles, let's break down the steps to ensure it's set up correctly.