company logo

Standard application elements

The standard application that has been initialized from the _TPL_TreeProject pattern can be considered as a proposal. It contains several elements, which one may not want. In this case, they can be simply removed.

After selecting the Main window in the class tree (Main/Windows/Main), one may call Test window from the context menu in order to get a first impression how your application looks like. The application consists of following elements, which might be removed or updated:

  • Application Menu
  • Application toolbar
  • Application area

The application area contains the

  • Application tree (left)
  • output or message area (bottom)
  • workspace area (right)

The sample contains two tree controls arranged in a tab (Main::application_trees). In the test mode one may check the design elements (switching tabs, resizing etc.), but you cannot enter data. In order to access data, data sources assigned to controls have to be set.

Controls in a window or control are referenced via Fields, which provide context specific information for displaying the control (position in the parent control, size, texts etc). Moreover, Fields combine the data source with a control, that displays the data. Fields and other elements defined within a control do have an Auto-open property, which allows to switch off an element temporarily.

In order to deactivate, e.g. the second tab, you switch to the Properties view (down tab), select the field tree_common in control application trees and deactivate the Auto-open check box (right). When you test the application again (Test window), the tree area shows only one tabs.

Notes:

One should never call Design for the Main window (Main/Windows/Main) or the main application control (Main/Windows/Main/main) since this may cause strange side effects.