FontColor and button - is it possible to change?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 3308
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: FontColor and button - is it possible to change?

Post by serge_girard »

Thanks Krzysztof and Pablo !

Could this be made standard in HMG?

Serge
There's nothing you can do that can't be done...
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: FontColor and button - is it possible to change?

Post by KDJ »

Pablo César wrote:I hope you do not mind, I made a small contribution based on your code.
Hi Pablo, this is very nice!
Pablo César wrote:I also fixed probably a typo in FrameColor of ODS_FOCUS in _OWNBUTTONDRAW C function. (I wrote Pablo FYG).
This is not a bug, I did it deliberately.
In this way I wanted to draw focused button in the style of Windows XP.
In this case, border of the button comprises three frames: outer frame, intermediate frame and inner frame.
The outer and inner frames are drawn in FrameColor defined for normal button.
And the intermediate frame is drawn in FrameColor defined for focused button.
Maybe I should change it - draw only one bold frame?
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FontColor and button - is it possible to change?

Post by Pablo César »

All merits are yours, my friend. I was able to do this routine thanks to your indications.

There's a lot we have to learn.

I do not think you need to change anything. Everything is great!

About:
Krzysztof wrote:This is not a bug, I did it deliberately.
In this way I wanted to draw focused button in the style of Windows XP.
Ohhh sorry. It's better leave as you predicted. For those who want to make bold, just put the two colors on the frame with the same color and will be alright. :)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: FontColor and button - is it possible to change?

Post by danielmaximiliano »

Thanks Krzysztof !
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
mlnr
Posts: 127
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: FontColor and button - is it possible to change?

Post by mlnr »

Great!!!

Is it possible to display pictures on the button?
EduardoLuis
Posts: 684
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: FontColor and button - is it possible to change?

Post by EduardoLuis »

Thanks both Krzysztof and Pablo Cesar.
GREAT JOB.
With regards.
Eduardo
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: FontColor and button - is it possible to change?

Post by KDJ »

New version of owner draw buttons.
Added possibility to set:
- bitmap as background,
- alignment of caption text.
 
Attachments
OwnButton.png
OwnButton.png (26.63 KiB) Viewed 4575 times
OwnButton.zip
(69.8 KiB) Downloaded 452 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FontColor and button - is it possible to change?

Post by Pablo César »

Nice one !

Dziękuję Mr. Krzysztof.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: FontColor and button - is it possible to change?

Post by bpd2000 »

Pablo César wrote: Mon Jan 23, 2017 8:09 pm Nice one !

Dziękuję Mr. Krzysztof.
+1
BPD
Convert Dream into Reality through HMG
mlnr
Posts: 127
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: FontColor and button - is it possible to change?

Post by mlnr »

Wow! That's what i need.

Thanks Krzysztof
Post Reply