1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod FindOrCreate (TG_UIForm owner, Key componentkey, String name,  
 |    String display, String splitterpaneltitle) as TG_UIComponent 
 |  { 
 |    TextBody: 
 |    [* 
 |      uicomponent := select( owner, TG_UIComponent, component, component.Name() = name ); 
 |       
 |      if( isnull( uicomponent ) ) 
 |      { 
 |        uicomponent := owner.TG_UIComponent( relnew, 
 |                                             Name := name ); 
 |      } 
 |       
 |      uicomponent.Display( display ); 
 |      uicomponent.ComponentKey( componentkey ); 
 |      uicomponent.SplitterPaneTitle( splitterpaneltitle ); 
 |       
 |      return uicomponent; 
 |    *] 
 |  } 
 |  
  |