Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Gambas 中,我可以像这样创建控件:
btn = New Button(parent) As "MyButton"
现在事件监听:
MyButton_Click()
但是如何创建具有动态名称的元素,例如:
dim tmp as string tmp = "MyButton" btn = New Button(parent) As tmp
最后一行不起作用,但这就是如何处理这个问题的问题。
我必须使用以下方法将对象附加到其父窗体:
dim tmp as string tmp = "MyButton" btn = New Button(parent) Object.Attach(btn, ParentForm, tmp)
我的目标是对齐,如附图所示(左侧的字段可以有任何宽度,但右侧的字段应该从相同的X坐标开始)。
X
现在我正在使用一个简单的表格代码来实现这一点:
<table><tr> <td>Left1<