Print Page | Close Window

unable to set xtpcontrolbutton in xtptoolbar popup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15662
Printed Date: 16 November 2024 at 8:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: unable to set xtpcontrolbutton in xtptoolbar popup
Posted By: rattana
Subject: unable to set xtpcontrolbutton in xtptoolbar popup
Date 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   



Replies:
Posted By: Oleg
Date 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


Posted By: rattana
Date 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


Posted By: Oleg
Date 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



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