delphi - Event when all mdi forms are closed -


guys, i'd if knows event or method can intercept when mdi forms closed.

example:

i want implement event in main form when close mdi forms, such event triggered.

grateful if can help.

mdi child forms (in fact form), while being destroyed, notify main form. can use notification mechanism. example:

type   tform1 = class(tform)     ..   protected     procedure notification(acomponent: tcomponent; operation: toperation);       override;    ..  procedure tform1.notification(acomponent: tcomponent; operation: toperation); begin   inherited;   if (operation = opremove) , (acomponent tform) ,       (tform(acomponent).formstyle = fsmdichild) ,       (mdichildcount = 0) begin      // work    end; end; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -