Page 1 of 1

MsgInfo() doubt

Posted: Mon Jan 27, 2025 6:49 pm
by wartiaga
Hi,
Is there any way to center the text in the following msginfo(),msgyesno(),msgAlert() functions? delimit the size of the first line and center the rest on the second line?

Thanks in advance.

Re: MsgInfo() doubt

Posted: Tue Jan 28, 2025 4:49 am
by nageswaragunupudi
All Msg.... () functions (eg. MsgInfo(), MsgYesNo(), ... etc) display the messages using Windows API function MessageBoxEx(...) and the display is by Windows OS and we have no control on that.

If we want a different appearance, we need to write our own functions.

Re: MsgInfo() doubt

Posted: Wed Jan 29, 2025 1:07 am
by wartiaga
nageswaragunupudi wrote: Tue Jan 28, 2025 4:49 am All Msg.... () functions (eg. MsgInfo(), MsgYesNo(), ... etc) display the messages using Windows API function MessageBoxEx(...) and the display is by Windows OS and we have no control on that.

If we want a different appearance, we need to write our own functions.
Ok, thank you Mr. Nages!

Re: MsgInfo() doubt

Posted: Wed Jan 29, 2025 6:53 am
by Otto

Re: MsgInfo() doubt

Posted: Wed Jan 29, 2025 6:14 pm
by wartiaga
Otto wrote: Wed Jan 29, 2025 6:53 am I posted my metromsginfo() here:

viewtopic.php?p=266623&hilit=I+use+a+di ... le#p266623
Thank You Otto!