I need a explanation of how DDT determines the ZOrder of controls.
I am used to SDK style coding and with CreateWindowEx the Tab Order and the ZOrder (depth of controls in relation to each other) are the exact same thing. The controls Tab order is defined by the order in which they are created and the ZOrder is the same (the first control will always be on top of the next control created).
Now, DDT does something different.
DDT controls use the Tab order OK (in the order they are created), but the ZOrder is another story.
It looks to me that the ZOrder is the "reverse" of the Tab order (the order of creation of the controls) and the Label (static) controls seem to get pushed Forward in ZOrder, no matter when I create them.
For example, say I want to have a static control used as a background (a colored rectangle) and then put another static control (label) on top of it, with text in it and also a control that uses Tab Order like an Edit control (Text) on top of the first Label. I can't seem to do it with DDT.
The example should look like this:
The Labels will be using Colors to make it all stand out,
so I need them.
Could someone write a simple code block that demonstrates how to Layer the controls above correctly (No colors needed in example) ?
[This message has been edited by Chris Boss (edited March 13, 2000).]
I am used to SDK style coding and with CreateWindowEx the Tab Order and the ZOrder (depth of controls in relation to each other) are the exact same thing. The controls Tab order is defined by the order in which they are created and the ZOrder is the same (the first control will always be on top of the next control created).
Now, DDT does something different.
DDT controls use the Tab order OK (in the order they are created), but the ZOrder is another story.
It looks to me that the ZOrder is the "reverse" of the Tab order (the order of creation of the controls) and the Label (static) controls seem to get pushed Forward in ZOrder, no matter when I create them.
For example, say I want to have a static control used as a background (a colored rectangle) and then put another static control (label) on top of it, with text in it and also a control that uses Tab Order like an Edit control (Text) on top of the first Label. I can't seem to do it with DDT.
The example should look like this:
Code:
_______________________________ | | <--- Background Label | __________________________ | | | Label with text | | | |_________________________| | | | | __________________________ | | | | | | | Edit control (Text) | | | | | | | | | | | |_________________________| | | | |______________________________|
so I need them.
Could someone write a simple code block that demonstrates how to Layer the controls above correctly (No colors needed in example) ?
[This message has been edited by Chris Boss (edited March 13, 2000).]
Comment