Forum » Programiranje » SWT control - child id
SWT control - child id
![](https://static.slo-tech.com/stili/avatar_gray.gif)
boss-tech ::
Zanima me kako lahko za nek Composite dobim ven samo določene childe - se pravi po id?
Sedaj lahko npr dobim:
Sedaj lahko npr dobim:
for (Control control : comp.getChildren()) { String controlType = control.getClass().getSimpleName(); if (controlType.equals("Group")) { ... } }
- spremenil: boss-tech ()
![](https://static.slo-tech.com/stili/avatar_gray.gif)
nightrage ::
for (Control control : comp.getChildren()) { if (typeof(control) == typeof(Label)) ... } }
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | C# textbox polnjenjeOddelek: Programiranje | 1644 (1509) | Mitja Bonča |
» | vb.net: dynamic textboxOddelek: Programiranje | 1201 (1091) | saule |
» | vb.net: zapri vse tabcontroleOddelek: Programiranje | 770 (663) | klemenSLO |
» | C# ProgramOddelek: Programiranje | 3123 (2046) | Spura |
» | [VB express edition] problemOddelek: Programiranje | 1401 (1304) | frudi |