Morfik Tip: Pretty up the ‘Loading…’ message
February 14, 2007
I got bored with the ugly ‘Loading…’ message in the upper left corner while my users are patiently (?) waiting for my app to launch, so I dug a little into the Framework source code and came up with the following.
In SystemServerDocForm, in the Browser code, in TFormServer.GenerateMainHTMLPage, replace line 595 with the following:
// !PI! Added a little style to the "Loading" message
Response.WritelnString(' <div id="__LoadingText" '+
'style="left:40%;top:50%;position:absolute;font-weight:bold;'+
'text-align:center;font-size:12px;font-family:verdana,serif;'+
'background-color:#f0f0f0;padding:10px 14px 10px 14px;'+
'border:1px dotted gray;color:red;">');
This is valid for 0.9.16.1 — if you have a different version, your mileage may vary somewhat.
This is a quickie, and I suppose will be outdated pretty soon, as Morfik will do something better about it (e.g. put a class on this DIV, and make it possible to have an external stylesheet to customize), but for the time being it is a good fix. Of course, you may want to adjust the settings to your liking. Can also add some logo, change the text itself, etc.
