Author Topic: Download fixed version of Getcolor.zip  (Read 5537 times)

guga

  • Member
  • ****
  • Posts: 826
  • Assembly is a state of art.
    • RosAsm
Re: Download fixed version of Getcolor.zip
« Reply #15 on: September 08, 2014, 07:50:14 AM »
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

  • Member
  • ****
  • Posts: 826
  • Assembly is a state of art.
    • RosAsm
Re: Download fixed version of Getcolor.zip
« Reply #16 on: September 08, 2014, 08:21:57 AM »
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

  • Member
  • *****
  • Posts: 8745
  • Still using Abacus 2.0
    • DednDave
Re: Download fixed version of Getcolor.zip
« Reply #17 on: September 08, 2014, 10:07:26 AM »
i sometimes use GetObject or SystemParametersInfo(NONCLIENTMETRICS) to fill a LOGFONT structure
then modify the structure, as desired, and call CreateFont   :P

Gunther

  • Member
  • *****
  • Posts: 3515
  • Forgive your enemies, but never forget their names
Re: Download fixed version of Getcolor.zip
« Reply #18 on: September 08, 2014, 10:13:37 PM »
Hi Marinus,

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
Get your facts first, and then you can distort them.