Languages

Menu
Sites
Language
getting graphics information during start up

I am working on a simple GUI app (for watch). It is based on the BasicUI sample.

 

After the standard create_base_gui code (without the label), I added a box to the window (actually the conformant), then three labels into that. I got that to run and display okay. Now, as part of creating the gui, I wanted to get the dimensions of various parts, such as the labels, the box, or the base win. The only call I could find was evas_object_geometry_get. But when I make those calls right after the create_base_gui code, it returns zeros for x and y, and 1 for w and h. When I make this call once the app is running and the window with the box and labels displayed, then it returns real values (eg w=360, h=360).

 

So how am I supposed to get these dimensions at the start, before any part of the app is displayed?

 

I have a similar problem with getting permissions for the health info sensors. The pop-up question box won't pop up until the base gui is physically displayed.

 

The documentation for this is very limited: tutorials and examples are woefully out of date, and the rest just seems to be listings of the APIs w/o any real explanations.

 

Any ideas and help greatfully appreciated.

 

TIA

 

ken