Kbase P143757: OpenEdge Architect Visual Designer unexpectedly generates an InitializeComponent method
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/27/2009 |
|
Status: Unverified
SYMPTOM(s):
OpenEdge Architect Visual Designer unexpectedly generates an InitializeComponent method
Visual Designer unexpectedly generates an InitializeComponent method when adding an Event in a Class that inherits a Form
Visual Designer unexpectedly generates an InitializeComponent method changing an aspect of the UI in a Class that inherits a Form
Modifying a UI feature (such as location of a control) in the child Class causes Visual Designer to generate an InitializeComponent method
FACT(s) (Environment):
Attempting to separate business logic from the UI
ABL Class inherits from an ABL Form
ABL Class should not contain code relating to the UI
OpenEdge 10.2A
Windows
CAUSE:
This is expected behaviour. The ABL Class is inheriting from the ABL Form therefore any UI modifications made in the Class are local to that Class and must be reflected there. To do this, Visual Designer generates an InitializeComponent method to reflect the changes.
FIX:
No fix required. A programmer may wish to extract the relevant code (SUBSCRIBE statements for Events for example) and move this to another location allowing the InitializeComponent method to be removed.