Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon PNG Buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon PNG Buttons

 Post Reply Post Reply
Author
Message Reverse Sort Order
weding View Drop Down
Newbie
Newbie
Avatar

Joined: 17 November 2008
Location: Sweden
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote weding Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon PNG Buttons
    Posted: 27 November 2008 at 12:43am
Another question, when the tab is minimized and pressed there no handle for click function.
 
If i Double click the Tab button its minimized and when i then press the tab again it shows the buttons but then i there is no action when a button is pressed. But if i Double click the tab its maximized it works.. How can i fix that ?
 
 
//Richard
--------------------------
Product: Xtreme ToolkitPro version 12.1.0
Platform: Windows Vista(32bit) - SP 1
Language: C++
Back to Top
weding View Drop Down
Newbie
Newbie
Avatar

Joined: 17 November 2008
Location: Sweden
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote weding Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2008 at 7:35am
 Thanks ! Worked perfect...
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 25 November 2008 at 7:19am
Hi,
 
You need create class derived from CXTPControlBitmap, override OnClick and call OnExecute();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
weding View Drop Down
Newbie
Newbie
Avatar

Joined: 17 November 2008
Location: Sweden
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote weding Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2008 at 6:34am
How can i make the "PNG" become a button . The caption text is defined.
 
 
I dont want a button under the PNG. Iwant it to look like these and clickable. How can i do that ?
 
 

// Picture Window button

if (pTabHome)

{

CXTPRibbonGroup* pGroup = pTabHome->AddGroup(ID_GROUP_PICTURE);

pGroup->SetControlsCentering(TRUE);

CXTPControlBitmap* pLabel = new CXTPControlBitmap();

pGroup->Add(pLabel, IDR_PICTURE);

UINT nIDs[] = {IDR_PICTURE};

pCommandBars->GetImageManager()->SetIcons(IDR_PICTURE, nIDs, 1, CSize(0, 0), xtpImageNormal);

}

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.063 seconds.