Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - SplitButtonPopup is missing the dropdown arrow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SplitButtonPopup is missing the dropdown arrow

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


Joined: 24 August 2017
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Preetham_kp Quote  Post ReplyReply Direct Link To This Post Topic: SplitButtonPopup is missing the dropdown arrow
    Posted: 24 August 2017 at 3:21am
Hi,

Xtp version 16.0 with 64 bit VC++ code I am using with Command bar office 2003 theme.

xtpControlSplitButtonPopup is created without any flaw but I could not figure out why drop down arrow is missing and the SetStyle is xtpButtonIconAndCaption.

I am not understanding why the drop down icon isn't drawn at the time of split button control is created.

Could someone suggest me what I am missing.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2017 at 12:56pm
Hello Preetham_kp,

I have checked this with our sample CommandBars\CommandBarControls.
There is xtpControlSplitButtonPopup  "Select All" with xtpButtonIconAndCaption style and it is drawn with drop down icon. Is it correct drawn on your side ?

Regards,
 Oleksandr Lebed
Back to Top
Preetham_kp View Drop Down
Newbie
Newbie


Joined: 24 August 2017
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Preetham_kp Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2017 at 7:35am
Hi Olebed,

No. Still I could not figure it out. Please go through the code.

windowNavigBar->GetImageManager()->SetIcons(NAVBARICON, buttons, _countof(buttons), CSize(16,16),xtpImageNormal);
popupCtrl = static_cast<CXTPControlPopup*>(windowNavigBar->GetControls()->Add(xtpControlSplitButtonPopup, xtpBarTop);
popupCtrl->CreateControlPopup(xtpControlSplitButtonPopup);

popupCtrl->SetStyle(xtpButtonIconAndCaption)

popupCtrl->SetID(NAVIGATIONBACK);

After this, I am setting the Icon to ImageManager with SetIcon(backIcon, NAVIGATIONBACK,size);

Please let me know your thought on this.

In 32 bit code, same code will draw the back icon with drop down icon for xtpControlSplitButtonPopup.

Regards,
Preetham_kp




Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2017 at 6:20am
Hello Preetham_kp,

It will be much more easy if you give me sample application which I can debug.

Regards,
 Oleksandr Lebed
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.204 seconds.