Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3949

Creating a new control in a control set on web 2.0

$
0
0

Var b As WebButton ’ this is the control class
b = New Button1 ’ create clone of the control on the layout
b.Caption = “Clone”
b.Left = Me.Left + Me.Width + 10 ’ reposition it

I get this error from the above code: [ Button1 is a control set]

WebPage1.Opening, line 2
The constructor of this class is protected, and can only be called from within this class
b = New Button1 ’ create clone of the control on the layout

Also tried
Var b as Button1

and no difference

It works fine on web if I use “new WebButton” instead

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3949

Trending Articles