Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - unable to set xtpcontrolbutton in xtptoolbar popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

unable to set xtpcontrolbutton in xtptoolbar popup

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


Joined: 17 November 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rattana Quote  Post ReplyReply Direct Link To This Post Topic: unable to set xtpcontrolbutton in xtptoolbar popup
    Posted: 19 November 2009 at 5:55am
Hi;
 
I am facing a problem in the behaviour of xtpButtons in xtpcontrolPopup on toolbar.
 
When i click on any xtpcontrolbutton inside the popup; it should make the clicked item as the Topmost button of pop up. But this is not behaving right , and i didn't find anything in Cxtpcontrol class.
So please suggest me , whether ther's any style which i got miss or anything else
 
thnx   
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: 20 November 2009 at 1:32am
"But this is not behaving right"  - What  not behaving right ? What you tried ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rattana View Drop Down
Newbie
Newbie


Joined: 17 November 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rattana Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2009 at 5:16am
well I could not find any style or function or any flag to achieve this kind of functionality in CXTPcontrolpopup.
I wish that when I click any controlbutton under xtpcontrolpopup;The clicked button should become the topmost index.
Something similar to the flyout toolbars behavior
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: 23 November 2009 at 5:20am

Hi,

Catch Button execute event (see Samples) check what parent of button and if its your Popup Control call
 
pButton->GetControls()->MoveBefore(pButton, 0);
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.141 seconds.