ShowMessage can have any title!
From: Robert J Baker (korax1214_at_mailandnews.co.uk)
Date: 05/22/04
- Next message: Robert J Baker: "Delphi 6 doesn't recognise .CHM files"
- Previous message: J French: "Re: Public variable not intialized"
- Next in thread: Rob Kennedy: "Re: ShowMessage can have any title!"
- Reply: Rob Kennedy: "Re: ShowMessage can have any title!"
- Reply: Mark Arkey: "Re: ShowMessage can have any title!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 May 2004 12:16:15 -0700
The dialog box popped up by ShowMessage (which is the simplest way I
know to pop-up an on-the-fly dialog box with no bitmap, a single-line
message and an OK button) is supposed to have your application's name
as its title, but I've found a simple way to change this, as in this
code fragment:
g:=Application.Title;
Application.Title:='How are you gentlemen?!'
ShowMessage('All your base are belong to us.');
Application.Title:=g;
(The first and last lines are probably not needed if this is a "let
user see the final state of the main window before exiting" dialog.
This example replicates a very old joke/meme and it is not recommended
that this exact dialog box is used in any application one wishes to
deploy, unles one doesn't mind looking a complete twit. :) )
Could be useful, to me at least...
- Next message: Robert J Baker: "Delphi 6 doesn't recognise .CHM files"
- Previous message: J French: "Re: Public variable not intialized"
- Next in thread: Rob Kennedy: "Re: ShowMessage can have any title!"
- Reply: Rob Kennedy: "Re: ShowMessage can have any title!"
- Reply: Mark Arkey: "Re: ShowMessage can have any title!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]