If your looking to create a custom chrome window in Winform or WPF, you should take a look at the ‘Marlett’ font that is available on your system.

This font contains the actual glyphs used in Windows for the Minimize, Maximize, Restore and Close buttons.

Using this font makes it really easy to reuse these glyphs in a custom chrome window, instead of custom images that is typically used.

To get started, assign your buttons the Marlett font.

Next, assign the text value for each of the buttons the following…

  • Close button, use the text r (lowercase R)
  • Minimize button, use 0 (zero)
  • Maximize button, use 1 (one)
  • Restore button, use 2 (two)

You can take a look at the Marlett font in the Windows Character Map or here for more details.

Here is an example of what the Windows buttons would look like using this font…

Posted by Callon Campbell [MVP]

One Comment

  1. thanks for the info

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s