P pdabasic Active Member Licensed User Apr 6, 2010 #1 Hello! :sign0085: How can I duplicate a Control like in the designer? I would like to duplicate some controls with a sub. Thank you
Hello! :sign0085: How can I duplicate a Control like in the designer? I would like to duplicate some controls with a sub. Thank you
klaus Expert Licensed User Longtime User Apr 7, 2010 #2 You can add Controls at runtime, look at the help file under Keywords/Runtime control manipulation. Example: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Here is a code example: http://www.b4x.com/forum/code-samples-tips/128-runtime-control-manipulation.html Best regards.
You can add Controls at runtime, look at the help file under Keywords/Runtime control manipulation. Example: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Here is a code example: http://www.b4x.com/forum/code-samples-tips/128-runtime-control-manipulation.html Best regards.
M mjcoon Well-Known Member Licensed User Apr 7, 2010 #3 klaus said: Code: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Click to expand... And many of the control properties can be "got" from an existing one and applied to the new one, giving the effect of duplication. Mike.
klaus said: Code: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Click to expand... And many of the control properties can be "got" from an existing one and applied to the new one, giving the effect of duplication. Mike.
P pdabasic Active Member Licensed User Apr 7, 2010 #4 klaus said: You can add Controls at runtime, look at the help file under Keywords/Runtime control manipulation. Example: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Here is a code example: http://www.b4x.com/forum/code-samples-tips/128-runtime-control-manipulation.html Best regards. Click to expand... Thank you but I already solved the problem! :sign0089:
klaus said: You can add Controls at runtime, look at the help file under Keywords/Runtime control manipulation. Example: AddTextBox ("Form1","TextBox1", 20, 20, 50, 25, "") Here is a code example: http://www.b4x.com/forum/code-samples-tips/128-runtime-control-manipulation.html Best regards. Click to expand... Thank you but I already solved the problem! :sign0089: