FontColor and button - is it possible to change?
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
FontColor and button - is it possible to change?
Hola Daniel,
Disponibilizé en Fixed and enhanced SAMPLES dos nuevos ejemplos para el USER_COMPONENTS e intenté efetivar el estilo BS_OWNERDRAW para el nuevo botón. Asi poderíamos cambiar el FontColor del caption. Pero no conseguí, solo consegui mejorar adicionando las propiedades largura, alto y MULTILINE.
Espero que te guste. Le pedí ayuda a Claudio. Pero si tenés alguna sugerencia, hacemela saber.
Un abraço,
---
Hello Daniel,
I made available in Fixed and enhanced SAMPLES two new examples for the USER_COMPONENTS and tried to effect the style BS_OWNERDRAW for the new button. So we could change the Caption FontColor. But I did not get it, I just got better by adding the properties of width, height and MULTILINE.
I hope you like it. I asked Claudio for help. But if you have any suggestions, let me know.
A hug,
Disponibilizé en Fixed and enhanced SAMPLES dos nuevos ejemplos para el USER_COMPONENTS e intenté efetivar el estilo BS_OWNERDRAW para el nuevo botón. Asi poderíamos cambiar el FontColor del caption. Pero no conseguí, solo consegui mejorar adicionando las propiedades largura, alto y MULTILINE.
Espero que te guste. Le pedí ayuda a Claudio. Pero si tenés alguna sugerencia, hacemela saber.
Un abraço,
---
Hello Daniel,
I made available in Fixed and enhanced SAMPLES two new examples for the USER_COMPONENTS and tried to effect the style BS_OWNERDRAW for the new button. So we could change the Caption FontColor. But I did not get it, I just got better by adding the properties of width, height and MULTILINE.
I hope you like it. I asked Claudio for help. But if you have any suggestions, let me know.
A hug,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: FontColor and button - is it possible to change?
This is my implementation of buttons with BS_OWNERDRAW style:
- Attachments
-
- OwnButton.zip
- (5.87 KiB) Downloaded 372 times
-
- OwnButton.png (14.39 KiB) Viewed 7197 times
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: FontColor and button - is it possible to change?
Gracis por compartir Pablo..
pero es domingo !!!!!
pero es domingo !!!!!
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
- serge_girard
- Posts: 3312
- 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?
Thanks, Krystof!
Brilliant!
Serge
Brilliant!
Serge
There's nothing you can do that can't be done...
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
FontColor and button - is it possible to change?
Fué Krzysztof (KDJ) que lo hizo ( yo no sé hacerlodanielmaximiliano wrote:Gracis por compartir Pablo..
pero es domingo !!!!!

Simply amazing... I love it.KDJ wrote:This is my implementation of buttons with BS_OWNERDRAW style
How good it is to have people with knowledge and willingness to help colleagues in the forum.
I am amazed and very pleased to know that our friend Claudio, Roberto, Rathinagiri and many can count on truly unselfish people in our community.
Many thanks Krzysztof.

HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2220
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: FontColor and button - is it possible to change?
Nice work!!!KDJ wrote:This is my implementation of buttons with BS_OWNERDRAW style:
PD: A suggestion: should be used to draw the button the api functions that draw with the style of Windows active theme, otherwise the button is flat and the other controls are drawn by superimposing layers of images that recreate the active theme. This is the way that Windows draws controls with active theme.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
FontColor and button - is it possible to change?
Yes, good ! It's what is needing to be perfect.srvet_claudio wrote:suggestion: should be used to draw the button the api functions that draw with the style of Windows active theme
Gracias Claudio for important tip and Krzysztof for you great work.
Both, my masters. When I grow up ... I want to be like all of you!

HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: FontColor and button - is it possible to change?
Hi,srvet_claudio wrote:Nice work!!!KDJ wrote:This is my implementation of buttons with BS_OWNERDRAW style:
PD: A suggestion: should be used to draw the button the api functions that draw with the style of Windows active theme, otherwise the button is flat and the other controls are drawn by superimposing layers of images that recreate the active theme. This is the way that Windows draws controls with active theme.
Congratulations

It is a very good work with the deep knowledges of WinAPI

Please take a look for an image below (what we have in Minigui Ex)
- Attachments
-
- ButtonEx control with color support in Minigui Ex
- obutton.png (493.48 KiB) Viewed 7065 times
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein