Ownerdrawn CXTPControlButton |
Post Reply |
Author | |
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
Posted: 05 April 2007 at 4:50am |
Hello,
I would need to have toolbar buttons which are completely drawn by ourselves, _not_ specifying any icon for these buttons. The first idea was to override CXTPControlButton::Draw() to draw the entire bitmap of the button, but unfortunately this method is not called by XTP unless I specify an icon for that button previously (through pButton->SetIconId() or pButton->SetCustomIcon()). Do you know a way how to achieve a call to that Draw() method without specifying any icon ID for the buttons? Thank you very much, in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
it called always.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
ps. Here simple sample: Logo.zip
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Hello,
yes, you're right. Sorry, my initial question should not be related to CXTPControlbutton::Draw(), but to CXTPPaintManager::DrawImage(). I want to keep XTP's drawing of buttons, except the button image. So the right question would be: how do I achieve that DrawImage() is called inside CXTPPaintManager::DrawControlToolBarParent() without specifying an icon ID for my CXTPControlButton override? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can't achieve this.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Thank you, anyway.
I'm not glad to hear this, but I somehow knew this will be your answer. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |