//TH-Header //***************************************************************************************** // Copyright (c) 2014 KURANT Project // All rights reserved. // // $FileName : vdfcls.SL // $ProjectName : The Hammer 2.0 // $Authors : Wil van Antwerpen, Michael Kurz, Sergey V. Natarov // $Created : 01.25.2014 01:08 // $Type : LGPL // // Contents: VDF Classes Selector // //***************************************************************************************** //TH-RevisionStart //TH-RevisionEnd // Project Object Structure // VDFCLS_SL is a dbModalPanel // Vdfcls_DD is a DataDictionary // oSelList is a dbList // oOK_bn is a Button // oCancel_bn is a Button // oSearch_bn is a Button // dbEdit1 is a dbEdit // Register all objects Register_Object dbEdit1 Register_Object oCancel_bn Register_Object oOK_bn Register_Object oSearch_bn Register_Object oSelList Register_Object VDFCLS_SL Register_Object Vdfcls_DD Use VDFCLS.DD CD_Popup_Object VDFCLS_SL is a dbModalPanel #IF (!@ >= 140) Set pbSizeToClientArea to False #ENDIF Set Label to "Registered Classes" Set Size to 262 297 Set Location to 3 5 Object Vdfcls_DD is a Vdfcls_DataDictionary End_Object // Vdfcls_DD Set Main_DD to (Vdfcls_DD(self)) Set Server to (Vdfcls_DD(self)) Object oSelList is a dbList Set Main_File to Vdfcls.File_Number Set Size to 159 280 Set Location to 6 6 Begin_Row Entry_Item Vdfcls.Name Entry_Item Vdfcls.Code End_Row Set Form_Width item 0 to 224 Set Header_Label item 0 to "Name" Set Form_Width item 1 to 48 Set Header_Label item 1 to "Code" End_Object // oSelList Object oOK_bn is a Button Set Label to "&OK" Set Location to 223 127 Procedure OnClick Send OK To oSelList End_Procedure End_Object // oOK_bn Object oCancel_bn is a Button Set Label to "&Cancel" Set Location to 223 181 Procedure OnClick Send Cancel To oSelList End_Procedure End_Object // oCancel_bn Object oSearch_bn is a Button Set Label to "&Search..." Set Location to 223 237 Procedure OnClick Send Search To oSelList End_Procedure End_Object // oSearch_bn Object dbEdit1 is a dbEdit Set Object_Shadow_State To True Entry_Item Vdfcls.Descr Set Size to 49 280 Set Location to 170 6 End_Object // dbEdit1 On_Key Key_Alt+Key_O Send KeyAction To oOk_bn On_Key Key_Alt+Key_C Send KeyAction To oCancel_bn On_Key Key_Alt+Key_S Send KeyAction To oSearch_bn CD_End_Object // VDFCLS_SL