summaryrefslogtreecommitdiff
path: root/ide/fp.pas
diff options
context:
space:
mode:
authorkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-12-26 23:30:54 +0000
committerkaroly <karoly@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-12-26 23:30:54 +0000
commit51d4c016901f300f0706113aba5d9b7ac19bd4df (patch)
tree90a1204e205f322980d3aa355c9cf6b5fcf9b4c9 /ide/fp.pas
parent04da674e070d570fb207cf9f5a1bce65e1f4b354 (diff)
downloadfpc-51d4c016901f300f0706113aba5d9b7ac19bd4df.tar.gz
Amiga-likes: set the window/screen title with IDE version information
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@29336 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'ide/fp.pas')
-rw-r--r--ide/fp.pas14
1 files changed, 13 insertions, 1 deletions
diff --git a/ide/fp.pas b/ide/fp.pas
index d2e7e8986c..f1de80bf15 100644
--- a/ide/fp.pas
+++ b/ide/fp.pas
@@ -328,7 +328,15 @@ procedure InitCompilerSwitches;
default_settings.localswitches:=[cs_typed_const_writable];
end;
-
+{$IFDEF HASAMIGA}
+procedure SetAmigaWindowTitle;
+begin
+ { window title first, then screen title, shown when the window is active }
+ Video.SetWindowTitle(
+ 'Free Pascal IDE',
+ 'Free Pascal IDE '+VersionStr+' ['+{$i %date%}+'] - Compiler '+Full_Version_String);
+end;
+{$ENDIF}
{The square bullet needs an MS-DOS code page. On Unix it is for sure the code
page is not available before video is initialized. (And only in certain
circumstances after that, so, use a plain ascii character as bullet on Unix.)}
@@ -424,6 +432,10 @@ BEGIN
from command line PM }
ParseUserScreen;
+{$IFDEF HASAMIGA}
+ SetAmigaWindowTitle;
+{$ENDIF}
+
{ Update IDE }
IDEApp.Update;
IDEApp.UpdateMode;