Thanks, folks!
@Bart - I wrote my own before:
Procedure CenterPrompt(row,len_input : byte;
msg : ST80;
colr : char);
{ Goes to the row, determines the length of the msg and input string,
then centers the msg on the line
Sample call: CenterPrompt(10,0,'This message is centered.','0');
variables set:
GLOBAL bcol : starting Y coordinate of the msg
ccol : ending Y coordinate of the msg
use of bcol and ccol lets you do gotoXY calls to proper place in
string to highlight leading letters, etc.}
{************** CENTER PROMPT ********************}
Procedure CenterPrompt(row,len_input : byte;
msg : ST80;
colr : char);
var oldcolr:word;
begin
Setcolor(colr,oldcolr); { Center msg }
gotoXY(trunc(lo(windmax)-lo(windmin) - length(msg)-len_input) div 2,row);
bcol := whereX; { Mark beginning cursor location }
{ for read by calling routine }
write(msg);
RestoreColor(colr,oldcolr);
ccol := whereX; { Mark end cursor location for }
{ read by calling routine }
end;
I was trying to do that again, but I do not know the size of the ShowMessage window, if it changes size with longer/larger messages, how many max characters it holds. Do you know where I could find that information? Since I couldn't find it, I posted.
tr_escape - I have errors.
I even added Windows though I am already 'using' LCLIntF.
uses
Classes, Windows, SysUtils, FileUtil, LazFileUtils, Forms,
Controls, Graphics, SHFolder, ShlObj, Dialogs, StdCtrls,
ExtCtrls, Buttons, LCLIntf, LCLType, LazUtf8, BCButton,
BCButtonFocus;
But I'm not giving up!
@Thaddy - I'll give your code a shot in a few. Thank you very much for your tinkering!!!! (I think I might give up!
)
Thank you all for your fantastic help and suggestions!!
Added later:
YEP! Thaddy came to my rescue! It works (as you know it did.) Thank you.