Print Page | Close Window

How to set the positionXY of Floating CXTPToolBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8733
Printed Date: 05 February 2025 at 1:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set the positionXY of Floating CXTPToolBar
Posted By: hikaroute
Subject: How to set the positionXY of Floating CXTPToolBar
Date Posted: 09 November 2007 at 5:41am
I set the PositionCXTPToolBar to xtpBarFloating, then the toolbar is floated.  But it show on the origin point - x,y(0,0).  How can I set the positionXY of the toolbar?
 
Thank you again.



Replies:
Posted By: Oleg
Date Posted: 09 November 2007 at 12:38pm
Hi,
 
MoveWindow ? :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Tomasz
Date Posted: 09 November 2007 at 1:43pm
I have one feature request by the way: to be able to create docking pane as FLOATING. Currently it is impossible (AFAIK) and one needs to create it as docked and then float it like this:
 
 CXTPDockingPane* pwndPane = m_paneManager.CreatePane(
  nID, CRect(0,0,0,0), (XTPDockingPaneDirection)4, m_paneManager.GetClientPane());

 m_paneManager.FloatPane(pwndPane, oOrigRect );
I would love to see new XTPDockingPaneDirection constant that would allow immediate floating pane creation .


Posted By: hikaroute
Date Posted: 09 November 2007 at 6:28pm
To: oleg
I mean moving toolbar, because if I set the toolbar to be the floating toolbar it will stand on the XY(0,0) always.
 
To Tamasz:
Um... I think we have the easiest way to creat the floating toolbar.  I don't know why?


Posted By: Oleg
Date Posted: 12 November 2007 at 1:14am
Hikaroute, 
Just call pToolBar->MoveWindow or pToolBar->SetWindowPos to move it.


-------------
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