Menu

Commit [r899]  Maximize  Restore  History

Added new TDialogMgr.ShowNewsDlg method that displays new news dialog box.

delphidabbler 2010-09-22

changed /trunk/Src/UDialogMgr.pas
/trunk/Src/UDialogMgr.pas Diff Switch to side-by-side view
--- a/trunk/Src/UDialogMgr.pas
+++ b/trunk/Src/UDialogMgr.pas
@@ -123,6 +123,9 @@
       {Displays Proxy Server configuration dialog box.
         @return True if user OKs or False if user cancels.
       }
+    procedure ShowNewsDlg;
+      {Displays latest news about CodeSnip and database in a dialog box.
+      }
   end;
 
 
@@ -132,9 +135,9 @@
 uses
   // Project
   FmAboutDlg, FmDependenciesDlg, FmDonateDlg, FmFindCompilerDlg, FmFindTextDlg,
-  FmFindXRefsDlg, FmPreferencesDlg, FmPrintDlg,
-  FmProxyServerDlg, FmRegistrationDlg, FmSelectionSearchDlg, FmUpdateDlg,
-  FmUserBugReportDlg, UPageSetupDlgMgr, UTestUnitDlgMgr;
+  FmFindXRefsDlg, FmNewsDlg, FmPreferencesDlg, FmPrintDlg, FmProxyServerDlg,
+  FmRegistrationDlg, FmSelectionSearchDlg, FmUpdateDlg, FmUserBugReportDlg,
+  UPageSetupDlgMgr, UTestUnitDlgMgr;
 
 
 { TDialogMgr }
@@ -258,6 +261,13 @@
   TDonateDlg.Execute(Owner);
 end;
 
+procedure TDialogMgr.ShowNewsDlg;
+  {Displays latest news about CodeSnip and database in a dialog box.
+  }
+begin
+  TNewsDlg.Execute(Owner);
+end;
+
 procedure TDialogMgr.ShowTestUnit(const Snippet: TRoutine);
   {Displays test unit used to test compile a snippet.
     @param Snippet [in] Snippet to be test compiled.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.