yanweiyuan3
2023-08-09 98db93a55d7079e89c706c18b15eeaecd0ec539a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Quintiq file version 2.0
#parent: #root
Method NewGroup (
  internal[GUIComponent] parent
) as Group id:Method_DialogCreateEditGroup_NewGroup
{
  #keys: '[100628.0.166033941]'
  Body:
  [*
    // New group
    
    data := MacroPlan.Group( relshadow, Name := "" );// Set to empty, will be based on user defined value
    Dialog.Data( data );
    
    result := Dialog.DoModal( parent );
    newobj := null( Group );
    
    if( result > 0 )
    {
      newobj := Group::Create( MacroPlan,
                               EditorName.Text(),
                               data.IconForStockingPoints(),
                               data.IconForUnits(),
                               false );
    }
    
    return newobj;
  *]
}