简体   繁体   中英

Delphi 5 Form Caption Font Size

I am currently resizing my Delphi5 application from 800x600 to be scalable up to 1440x1080.

The only thing that still looks too small is the Form Caption and the ShowMessage/MessageDlg text.

Am I right in thinking the ShowMessage text is related to the Windows default size?

Is there any way to increase the Form Caption font size? It doesn't seem connected to the Form font size.

Thanks

The font size of the title bar is handled by windows and is system wide. If you want modify the font or other attibutes you must draw manually the non client area of the form(Windows).

Until Windows XP you can draw directly in the caption(title) bar modifying the font , color and text handling the WM_NCPAINT message, starting with windows vista and the DWM introduction you must use the DwmSetWindowAttribute function with the DWMWA_ALLOW_NCPAINT value in order to use this technique.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM