Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr
Letzter Beitrag:
vor 1 Jahr
Beteiligte Autoren:
Fabrice Harari, ccc2

[wm21 - android] Bugs , Groups in Control Template

Startbeitrag von ccc2 am 11.11.2016 01: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

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



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

von Fabrice Harari - am 11.11.2016 11:51
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 ?

von ccc2 - am 11.11.2016 16:38
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

von Fabrice Harari - am 12.11.2016 11:43
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.