Languages

Menu
Sites
Language
Position of control in the container/ Questionts

Hello 

Problems:

1. Function "SetControlAt( control, index) is not working like i think should be:

I have Form with two panels (one at the bottom, second on the top) which is loaded from xml file. In OnInitializing form method i'm creating new control from code and i'm adding it to the form: this->AddControl(imgview_); Adding like documentation says should take control at the end of the list (it should be last in the drawing sequence/on top). But when i want to use: this->SetControlAt(imgview_,0); it is not moving my imgview_ under two panels.
Strange thing is, that if I call 
this->SetControlAt(imgview_,1); imgview_ is under both of the panels. What's wrong?

PS. Of course i'm invalidating both frame and my imgview_ control.

2. There is no possibility to change the position of the control using Native UI Builder. In Bada UI builder there was this kind of option using right mouse button on control in the control list outline view. This is very annoying. It is possible to change controls positions changing xml elements using xml editor but it shouldn't be so. Still no comparision to Android Graphical Layout Editor or iOS Interface Builder.

Questions:

1. Why there is no such control like ImageView?

2. Why Panel control has no image background properity? (Using Label without text and with background image works but it shouldn't be that way...

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
Michał
bumping up
wil smith
AFAIK, SetControlAt() doesn't change the Z-order of a control. If you want to change Z-order of a control then first remove the control, construct it and then add it again.
Michał
So what is this SetControlAt() function for? Object like Containers have children on the list, and drawing order depends on position... This is not working and if someone is using UI Builder to create Form and also creating some custom views from code there must be some way, right?