I In certain cases, you may want to extend the default functions of the UI components or make custom changes. To do so, you can derive from the standard components. The new UI component can then be used in the GUI Builder. 

Generate UI Component

  1. Click Project Management > User Interface Create a new GUI element.
  2. In the following dialog, choose a name for your UI component in Name, e.g. MyButton
  3. Click Superclass > Browse.
  4. In the following dialog, choose a UI component from which you want to derive your UI component (superclass), e.g. XdevButton.
  5. Click on OK.
  6. Click on Finish.
Result:

Enhance UI component

The new UI component can be enhanced with any new properties and methods.

  1. Double-click the new UI component in Project Management > User Interface.
  2. Change the caption.
  3. Assign an icon to the UI component.
  4. Define a new property; e.g., MouseOverCaption.

    String MouseOverCaption = "";
    
    public String getMouseOverCaption() {
    	return MouseOverCaption;
    }
    
    public void setMouseOverCaption(String mouseOverCaption) {
    	MouseOverCaption = mouseOverCaption;
    }


  5. Click Save.
Note:

Use new UI component

The new UI component can be used in the GUI Builder in the same way as any other UI component.

  1. Click Project Management > User Interface > MainView.
  2. Choose a new UI component in the Palette and drag it to the MainView.

Use new UI component in the GUI Builder as default

  1. Click on the small arrow on the palette in the derived UI component.
  2. Click in the new UI component..