Reordering DOCKED controls
-
Hi all, the app. allows the user to create/add multiple textboxes (let's say) via a button click. Each textbox is docked at the bottom of the last added one. How do I change the order or in other words, move the one at the end to the 2nd place for example.. thanks in advance.. Radgar "Imagination is more important than knowledge." - Albert Einstein
-
Hi all, the app. allows the user to create/add multiple textboxes (let's say) via a button click. Each textbox is docked at the bottom of the last added one. How do I change the order or in other words, move the one at the end to the 2nd place for example.. thanks in advance.. Radgar "Imagination is more important than knowledge." - Albert Einstein
I think you should use DockManager to achieve this. http://www.codeproject.com/cs/miscctrl/DockManager.asp Live Life King Size Alomgir Miah
-
Hi all, the app. allows the user to create/add multiple textboxes (let's say) via a button click. Each textbox is docked at the bottom of the last added one. How do I change the order or in other words, move the one at the end to the 2nd place for example.. thanks in advance.. Radgar "Imagination is more important than knowledge." - Albert Einstein
You can do this by changing the Z order of the controls. BringToFront() and SendToBack() modify the Z order.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
-
You can do this by changing the Z order of the controls. BringToFront() and SendToBack() modify the Z order.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
-
thank you Judah. I tried that before I posted but the user may add 100 controls and when you modify the z-order, the action get slower and slower.. Thank you anyway. Radgar "Imagination is more important than knowledge." - Albert Einstein
That's probably a bad idea adding hundreds of controls. Each control contains an expensive HWND, could you fake the adding of controls? You could send a WM_Paint event to make the control draw to a surface, drawing it multiple times...
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
-
That's probably a bad idea adding hundreds of controls. Each control contains an expensive HWND, could you fake the adding of controls? You could send a WM_Paint event to make the control draw to a surface, drawing it multiple times...
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango