dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

MessageBox Header cutoff #31

Open plecos opened 7 years ago

plecos commented 7 years ago

When showing a MetroMessageBox, the header ("title") is cutoff at the bottom. I have attached a screen shot. What can I do to fix this?

snap122

aller70 commented 7 years ago

Looks like screen resolution more than 100%. Increase label area in source code and recompile.

plecos commented 7 years ago

Well that will work maybe on my computer, but what about other computers where the resolution may be less or more than 100%. Do you know how to detect that setting? I could probably put in the code to auto resize based on the percentage....

aller70 commented 7 years ago

You need change sizes of text labels (increase and rearrange) in ModernUI MessageBox source code.

aller70 commented 7 years ago

Try http://stackoverflow.com/questions/5901299/how-to-use-system-font-settings-for-a-windows-c-sharp-app

plecos commented 7 years ago

Thanks...if I get this working I'll create a pull request.

From: "aller70" notifications@github.com To: "dennismagno/metroframework-modern-ui" metroframework-modern-ui@noreply.github.com Cc: "Ken Salter" ken@thesalters.net, "Author" author@noreply.github.com Sent: Thursday, March 30, 2017 9:52:33 AM Subject: Re: [dennismagno/metroframework-modern-ui] MessageBox Header cutoff (#31)

Try http://stackoverflow.com/questions/5901299/how-to-use-system-font-settings-for-a-windows-c-sharp-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .

plecos commented 7 years ago

Actually, I just set the row (Row2) on the Panel for the MetroMessageBox that contains the title to "AutoSize" instead of the absolute value. This is working on my computer.

From: "aller70" notifications@github.com To: "dennismagno/metroframework-modern-ui" metroframework-modern-ui@noreply.github.com Cc: "Ken Salter" ken@thesalters.net, "Author" author@noreply.github.com Sent: Thursday, March 30, 2017 9:52:33 AM Subject: Re: [dennismagno/metroframework-modern-ui] MessageBox Header cutoff (#31)

Try http://stackoverflow.com/questions/5901299/how-to-use-system-font-settings-for-a-windows-c-sharp-app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .