Base Control Type property

Official Content
This documentation is valid for:
Specifies to which "base control type" corresponds your user control.

Values

Button
None

Description

If you want to create a User Control object that mimics the behavior of some of the standard controls that your Base Library provides, you should use this user control property in order to choose the base control type.

When you select Button as Base Type for your control you will inherit the following properties:

  • Caption (to set the button caption)
  • OnClickEvent (to define the event associated with the click event)
     

How do you specify when the OnClickEvent is raised and where the Caption is used?

You have to use {{OnClickEvent}} on the HTML tag where you want to raise the event. And you 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>

Run-time/Design-time

This property applies only at design-time.

Availability

This property is available since GeneXus 16.

Scope

Objects: User Control

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.