Specifies the "base control type" to which your user control belongs.
Button | The "base control type" of the user control is Button. |
CheckBox | The "base control type" of the user control is CheckBox. |
ComboBox | The "base control type" of the user control is ComboBox. |
Edit | The "base control type" of the user control is Edit. |
ErrorViewer | The "base control type" of the user control is ErrorViewer. |
Grid | The "base control type" of the user control is Grid. |
Group | The "base control type" of the user control is Group. |
HorizontalRule | The "base control type" of the user control is HorizontalRule. |
HyperLink | The "base control type" of the user control is HyperLink. |
Image | The "base control type" of the user control is Image. |
ListBox | The "base control type" of the user control is ListBox. |
None | No "base control type" is set. |
RadioButton | The "base control type" of the user control is RadioButton. |
Section | The "base control type" of the user control is Section. |
Tab | The "base control type" of the user control is Tab. |
Table | The "base control type" of the user control is Table. |
TextBlock | The "base control type" of the user control is TextBlock. |
Objects: User Control
Generators: .NET, .NET Framework, Java
To create a User Control object that mimics the behavior of some of the standard controls provided by your Base Library, use this user control property in order to choose the base control type.
When you select Button as Base Type for your control, the following properties will be inherited:
- Caption (to set the button caption)
- OnClickEvent (to define the event associated with the click event)
Use {{OnClickEvent}} in the HTML tag where you want to raise the event. And just use {{Caption}} as any other user-defined property to define a caption.
For example, in the Screen Template tab of your User Control object set the following:
<div {{OnClickEvent}} > {{Caption}} </div>
This property applies only at design time.
This property is available since GeneXus 16.