Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Bitmap on Button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bitmap on Button

 Post Reply Post Reply
Author
Message
djenric View Drop Down
Newbie
Newbie


Joined: 21 July 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote djenric Quote  Post ReplyReply Direct Link To This Post Topic: Bitmap on Button
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
djenric View Drop Down
Newbie
Newbie


Joined: 21 July 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote djenric Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2006 at 9:09am
Hi,
 
Try BS_XT_TWOROWS style
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
djenric View Drop Down
Newbie
Newbie


Joined: 21 July 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote djenric Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
djenric View Drop Down
Newbie
Newbie


Joined: 21 July 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote djenric Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2006 at 2:59pm
Can you fix it?
Back to Top
djenric View Drop Down
Newbie
Newbie


Joined: 21 July 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote djenric Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2006 at 9:10am
No solution?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.