Code pieces

xiaoxiao2021-03-06  62

Procedure TMAINFORM.ACTIONNEWEXECUTE (Sender: TOBJECT);

Var OldChildform, NewChildform: tchildform; // tchildform is a self-built subscription class

begin OldChildForm: = TChildForm (ActiveMDIChild); // get the current active child window Inc (Counter); NewChildForm: = TChildForm.Create (Self); NewChildForm.Caption: = LowerCase (ExtractFilePath (Application.Exename)) 'text' INTTOSTR (Counter) '.txt'; if Assigned (OldChildform) Then OldChildform.show // Re-displays the old window Else NewChildform.Show;

END;

转载请注明原文地址:https://www.9cbs.com/read-84419.html

New Post(0)