PNG on button
-
Using Graphics DrawImage method am drawing a PNG image on button,it displays once but it is not sustaining when mouse moves on the button
Are you sure you have the right forum? This is for unmanaged C++. It sounds like you might want the C# forum.
-
Are you sure you have the right forum? This is for unmanaged C++. It sounds like you might want the C# forum.
-
Using Graphics DrawImage method am drawing a PNG image on button,it displays once but it is not sustaining when mouse moves on the button
Show code,please?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Using Graphics DrawImage method am drawing a PNG image on button,it displays once but it is not sustaining when mouse moves on the button
Probably you're writing the button in the wrong message handler (if it is a message handler). As already suggested by Hamid, you should post some code to obtain help. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Using Graphics DrawImage method am drawing a PNG image on button,it displays once but it is not sustaining when mouse moves on the button
kiranin wrote:
but it is not sustaining when mouse moves on the button
That is not a surprise. The button redraws itself when it is hovered over, clicked on, not clicked on, when it's just plain spiteful... You need to put the drawing code in the right place. Search the articles on codeproject for owner draw buttons. (http://www.codeproject.com/KB/buttons/[^]) and replace their drawing code with your own PNG stuff. You may even find a PNG drawing button already done. Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...