Print Page | Close Window

Bitmap on Button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=4638
Printed Date: 24 November 2024 at 11:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bitmap on Button
Posted By: djenric
Subject: Bitmap on Button
Date 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



Replies:
Posted By: Oleg
Date Posted: 21 July 2006 at 2:30pm

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


Posted By: djenric
Date Posted: 22 July 2006 at 5:25am
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


Posted By: Oleg
Date Posted: 24 July 2006 at 9:09am
Hi,
 
Try BS_XT_TWOROWS style


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: djenric
Date Posted: 25 July 2006 at 2:53pm
Yes, so the text is shown below the image.
But the BS_MULTINIE option is ignored by the
CXTButton.


Posted By: djenric
Date Posted: 27 July 2006 at 2:59pm
Can you fix it?


Posted By: djenric
Date Posted: 28 July 2006 at 9:10am
No solution?


Posted By: Oleg
Date Posted: 28 July 2006 at 12:38pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net