*fixed* Newb question? how to iterate child windows?
Posted: Wed Aug 31, 2011 15:07
Have done some searching and can't seem to figure this out. Essentially I want a hierarchy of windows (Root/subset/1, Root/subset/2, Root/subset...) to be show()/hide() when the base window (Root/subset) is either shown or hidden
At first I hoped a show/hide call propagated that to children, unsurprisingly it does not seem to (nor can I find an option that will cause it to?)
Next I figured I'd just iterate through d_children myself and set the state.. except its protected. Its not clear to me that I'm supposed to inherit from the window class, since that would mean intimate involvement with construction, which seems wrong.
I could just brute-force it and maintain a list which I selectively batch-on batch-off but that's a maintenance nightmare which should not involve recompiling the client when a designer adds a dialog which may be entirely serviced with scripts.
Perhaps my OO-foo is simply weak, how am I supposed to do this?
-Curt
At first I hoped a show/hide call propagated that to children, unsurprisingly it does not seem to (nor can I find an option that will cause it to?)
Next I figured I'd just iterate through d_children myself and set the state.. except its protected. Its not clear to me that I'm supposed to inherit from the window class, since that would mean intimate involvement with construction, which seems wrong.
I could just brute-force it and maintain a list which I selectively batch-on batch-off but that's a maintenance nightmare which should not involve recompiling the client when a designer adds a dialog which may be entirely serviced with scripts.
Perhaps my OO-foo is simply weak, how am I supposed to do this?
-Curt