Bitmap on Button |
Post Reply |
Author | |
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 21 July 2006 at 12:43pm |
Hallo, is it possible to use bitmaps on a button
like in the button sample and use also the skin
framework? thx
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes. You don't even have to do anything - SkinFramework will do it automatically.
Just open Button sample and add
XTPSkinManager()->LoadSkin(_T("......\\SkinFramework\\Styles\\Office2007.cjstyles"));
to see how it works.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Great. It works.
But i have still a problem. The CXTButton seems
not to support the multiline option. Is it possible
to solve this?
thx
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Try BS_XT_TWOROWS style
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Yes, so the text is shown below the image.
But the BS_MULTINIE option is ignored by the
CXTButton.
|
|
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Can you fix it?
|
|
djenric
Newbie Joined: 21 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
No solution?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Solution is override CXTButtonTheme and its
DrawButtonText (see code in XTButtonTheme.cpp)
to apply new theme call
m_wndButton.SetTheme(new CMyButtonTheme);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |