You are here: Visual LANSA User Guide > 2. Editing Objects > 2.7 Reusable Parts > 2.7.1 Create Reusable Parts

2.7.1 Create Reusable Parts

To create a reusable part use the New command.

Then choose the type of reusable part you want to create:

There are several different types of reusable part.  Some reusable parts are created with only the simplest code possible, while others have a number of lines added to help simplify the development process.

All reusable parts ultimately inherit from the same primitive class and choosing a particular type in no way limits your choices after creation.

Panel

A simple component that inherits from a primitive panel (#Prim_panl) and is the simplest visible component possible. Only this type of reusable part was available prior to Version 13.

Object

A simple component that inherits from a primitive object (#Prim_Objt) and has no visible features.

Popup Panel

A popup panel that inherits from primitive popup panel (#Prim_ppnl).

Popup Panels are primarily used as an alternative to a Popup menu or a hint.

 

Tree Design

Similar to a panel but used as the visible design portion of a Tree user designed control (#Prim_Tree). 

When created the reusable part will implement the #Prim_Tree.iTreeDesign interface and will include shell method routines for the interface features.

Tile Design

Similar to a panel but used as the visible design portion of a Tile user designed control (#Prim_Tile). 

When created the reusable part will implement the #Prim_Tile.iTileDesign interface and will include shell method routines for the interface features.

List Cell Design

The List Cell Interface is used when a reusable part is embedded in a list as a column.

The interface provides methods that the List can call to indicate when specific list actions have occurred.

Carousel Design

Similar to a panel but used as the visible design portion of a Carousel user designed control (#Prim_Caro). 

When created the reusable part will implement the #Prim_Caro.iCarouselDesign interface and will include shell method routines for the interface features.

Visual LANSA Framework
Basic Command Handler

Basic Visual LANSA Framework VLF-ONE command handler skeleton.

Basic Filter

Basic Visual LANSA Framework VLF-ONE filter skeleton.

Typical Command Handler

Typical Visual LANSA Framework VLF-ONE command handler containing methods to load and save data.

Typical Filter

Typical Visual LANSA Framework VLF-ONE filter containing methods to search data.

 

 

The reusable part will be opened in the editor.

To copy an existing reusable part, select the reusable part in the Repository Tab or the Favorites Tab and use the Copy option from the context menu.

Also See

Components in the Technical Reference Guide.

2.7 Reusable Parts