|
| [wm21 - android] Bugs , Groups in Control Template |
| Iniciado por guest, 11,nov. 2016 02:56 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 11,noviembre 2016 - 02:56 |
1. create a control template (TPLC_test) . add static control into it. create group1 and add static control into group1 2. create a local procedure , name it "sethide()" put in code group1..visible = false
3. in main windows , insert 2 special control based on control template (TPLC_test). rename the control to ct_test1 and ct_test2
3. add button contol into main window . in click event code ct_test1.setHide()
4. compile/run . when you click on the button to hide static text in ct_test1. notice that static text in ct_text2 also disappear |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,noviembre 2016 - 12:51 |
Hi
How is that a bug?
Your code does group1..visible=false By your own design, both statics are part of the group, as the control TEMPLATE is part of the group.
If you want to do processing inside a specific control template, don't work on a group containing other stuff.
Seems perfectly normal to me...
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,noviembre 2016 - 17:38 |
Hi Fabrice,
tell me if i'm wrong , to my understanding, - TPLC_test is the class of object , static1 and static2 is the member
- tc_test1 and tc test2 is the instance of TPLC_test
is these correct ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,noviembre 2016 - 12:43 |
Hi again
in your first post, you are talking about control templates... Now you are talking about classes and instances ?
In windev, classes have nothing to do with the UI. Controls are not objects of classes or anything of the sort.
So no, what you are saying is not correct.
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|