News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Download fixed version of Getcolor.zip

Started by hutch--, August 15, 2014, 07:28:54 PM

Previous topic - Next topic

guga

Hi Steve, Thanks...i`ll give a try on the fonts.

One question, it is better setting them with CreateFontIndirect ?

I tried before with CreateFont, but it seems to not work :(
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

guga

Ok, i found out why it didn´t worked before with CreateFont

I did the same thing as in RTF font structure. The probelm is that when seting fonts to a RTF control, i can delete the font object on the same routne, i mean, i don´t need to deletet it after WM_CLOSe is clicked.

But, for other controls, i can´t use deleteobject on the same routine. The fonts for the controls must be deleted when the user closes the App.

I´ll try to make a routine for common controls that can set the color, font, and background of the controls on the sam way s i did for the RTF, with the difference that the user must delete the object once his app is closed.

Ill give a try.

And probably my function SetRTFFont works for both EditControls and RTF controls as well.I´ll test SetRTFFont on a regular editcontrol to see if it works the same way as in RTF
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

dedndave

i sometimes use GetObject or SystemParametersInfo(NONCLIENTMETRICS) to fill a LOGFONT structure
then modify the structure, as desired, and call CreateFont   :P

Gunther

Hi Marinus,

Quote from: Siekmanski on September 08, 2014, 06:37:21 AM
Hi hutch and guga,
They both work fine here ( win 8.1 64bit )

Are you happy with Windows 8.1? Is it worth to upgrading?

Gunther
You have to know the facts before you can distort them.