User friendly UI via system/screen log font

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi all,

I've been researching MSDN and news forums for the past few days trying to
achieve a more user friendly UI, similar to what MS applications (and
others) do with regards to using system display settings. For example, MS
Outlook uses the system/screen icon log font (established under the
machine's display properties dialog box) to set up the font inside the
outlook bar and folder tree view. I would also like to use this font setting
but cannot find anyway under .NET to retrieve it. The closest my research
has come would be to use the win32 API
SystemParametersInfo(SPI_GETICONTITLELOGFONT, ...) function. Something I
would like to avoid at this stage. Would rather go through the CLR in a
similar fashion to the .NET System.Windows.Forms.SystemInformation class.

Any .NET gurus out there would like to push me in the right direction
please? Much appreciated.

Regards,
Tony.
 
There is no other option in either the 1.0 or 1.1 versions of the .NET
framework. The right direction if you need the functionality is to use the
pinvoke.
 
Thanks for the push in the right direction Michael. I shall P/Invoke the
situation... Have a nice day.

Michael (michka) Kaplan said:
There is no other option in either the 1.0 or 1.1 versions of the .NET
framework. The right direction if you need the functionality is to use the
pinvoke.


--
MichKa [MS]

This posting is provided "AS IS" with
no warranties, and confers no rights.


Tony said:
Hi all,

I've been researching MSDN and news forums for the past few days trying to
achieve a more user friendly UI, similar to what MS applications (and
others) do with regards to using system display settings. For example, MS
Outlook uses the system/screen icon log font (established under the
machine's display properties dialog box) to set up the font inside the
outlook bar and folder tree view. I would also like to use this font setting
but cannot find anyway under .NET to retrieve it. The closest my research
has come would be to use the win32 API
SystemParametersInfo(SPI_GETICONTITLELOGFONT, ...) function. Something I
would like to avoid at this stage. Would rather go through the CLR in a
similar fashion to the .NET System.Windows.Forms.SystemInformation class.

Any .NET gurus out there would like to push me in the right direction
please? Much appreciated.

Regards,
Tony.
 
Back
Top