3 7 1 Form Component Details Tab

Visual LANSA

3.7.1 Form Component Details Tab

When a form is open in the editor, you can use the Details tab to view or edit the properties, events and methods for the component currently being worked with. You can change the current component by selecting it from the dropdown list on the top of this tab or by selecting it in the 3.4 Outline Tab or in the 3.9 Design Tab.

When you select a component (for instance a button on a form), the Details tab shows the properties, events and methods of the component.

When editing a form, the Details tab for components is divided into three tabs:

Details - Properties tab

The Details Properties tab shows the attributes of the component which is being edited. You can use properties to control things such as the size and color of a component, its caption, and whether it should be visible or not.

When you change the properties of a component using the Design view, you are making design-time changes. You can also change the properties of components at run time using the SET command.

Some values such as for example Caption have to be typed in; predefined values can be selected from a list.

Note that when you change the value of a property, this change is automatically reflected in the other parts of the editor. For example if you change the Height and Width properties of a component, the component is simultaneously resized in the Design tab. Its DEFINE_COM statement in the 3.8 Source Tab is also updated.

Details - Events tab

The Details Events tab is used to create and view event routines for the component being edited.

The Events tab is synchronized with the Source tab:

  • If you double-click on an event in the Events tab, an EVENTROUTINE with a matching ENDROUTINE command is inserted into the 3.8 Source Tab.
  • When the source code of the component contains a routine for an event, the icon in front of the event name in the Events tab is changed.

You can locate an existing event routine by double-clicking its name in the Events tab.

Details - Methods tab

The Details Methods tab is used to create and view methods for the component being edited.

When you double-click on a method, a statement invoking this method is inserted into the source of your component in the position where the cursor is in the 3.8 Source Tab.

So if you double-click the MaximizeForm method for a form and your cursor is in the Click event of #PHBN_1, a statement invoking the MaximizeForm method of the form is inserted in the Click event:

EVTROUTINE HANDLING(#PHBN_2.Click)

INVOKE METHOD(#COM_OWNER.MaximizeForm)

ENDROUTINE

 

Ý 3.7 Details Tab