1
A
回答
5
对任何控件添加到父控件:
MyControl := TMyControl.Create(MyForm); // Form is the owner
MyControl.Parent := ParentControl; // Parent control is the parent
你也能设置其他属性,如果你喜欢。
4
与普通容器只有轻微的差别,您可以设置子控件的顺序。
OldIndex:= FlowPanel.GetControlIndex(MyControl);
FlowPanel.SetControlIndex(MyControl, OldIndex + 1);
相关问题
- 1. 在运行时向GroupBox添加控件
- 2. 在运行时添加silverlight控件
- 3. 在运行时不添加控件
- 4. 在运行时向父控件添加控件
- 5. 在运行时将控件添加到子控件
- 6. 在运行时添加用户控件 - 访问控件
- 7. 在运行时添加控件时无法处理事件
- 8. 最佳实践:在设计时或运行时添加控件
- 9. ASP.Net用户控件在运行时添加时不起作用
- 10. 在运行时在TAB键上添加控件按
- 11. 在运行时在objective-c中添加按钮控件Cocoa
- 12. TFlowPanel都在D5
- 13. 如何在运行时将控件添加到ItemTemplate(Repeater)?
- 14. 如何在运行时将用户控件添加到窗口?
- 15. 在运行时使用Asp MVC 2 Rc2添加Html控件
- 16. 在运行时将控件添加到面板
- 17. 在运行时动态添加控件到TableLayoutPanel
- 18. 删除在运行时添加的控件
- 19. 在运行时从MFC派生类中添加控件
- 20. 在运行时将控件添加到RDLC
- 21. 如何在ASP.NET的运行时添加用户控件?
- 22. 在windows c中从XML中添加运行时控件#
- 23. 如何在运行时将复合控件添加到布局?
- 24. 使用perl win32在运行时添加控件:: gui
- 25. C#WPF在运行时向主窗口添加控件
- 26. 在运行时将控件添加到窗口
- 27. 在运行时以循环方式添加控件
- 28. Devexpress:如何在运行时为图表控件添加点?
- 29. 在运行时将控件添加到Stackpanel(SL 4.0)
- 30. 在运行时添加Satellite组件