Page 4 of 5
Re: FontColor and button - is it possible to change?
Posted: Sun Dec 11, 2016 9:23 am
by serge_girard
Thanks Krzysztof and Pablo !
Could this be made standard in HMG?
Serge
Re: FontColor and button - is it possible to change?
Posted: Sun Dec 11, 2016 2:34 pm
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?
FontColor and button - is it possible to change?
Posted: Sun Dec 11, 2016 3:30 pm
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.

Re: FontColor and button - is it possible to change?
Posted: Sun Dec 11, 2016 11:45 pm
by danielmaximiliano
Thanks Krzysztof !
Re: FontColor and button - is it possible to change?
Posted: Mon Dec 12, 2016 10:10 am
by mlnr
Great!!!
Is it possible to display pictures on the button?
Re: FontColor and button - is it possible to change?
Posted: Mon Dec 12, 2016 1:06 pm
by EduardoLuis
Thanks both Krzysztof and Pablo Cesar.
GREAT JOB.
With regards.
Eduardo
Re: FontColor and button - is it possible to change?
Posted: Mon Jan 23, 2017 7:07 pm
by KDJ
New version of owner draw buttons.
Added possibility to set:
- bitmap as background,
- alignment of caption text.
FontColor and button - is it possible to change?
Posted: Mon Jan 23, 2017 8:09 pm
by Pablo César
Nice one !
Dziękuję Mr. Krzysztof.
Re: FontColor and button - is it possible to change?
Posted: Tue Jan 24, 2017 4:54 am
by bpd2000
Pablo César wrote: ↑Mon Jan 23, 2017 8:09 pm
Nice one !
Dziękuję Mr. Krzysztof.
+1
Re: FontColor and button - is it possible to change?
Posted: Tue Jan 24, 2017 7:57 am
by mlnr
Wow! That's what i need.
Thanks Krzysztof