Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to set the positionXY of Floating CXTPToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set the positionXY of Floating CXTPToolBar

 Post Reply Post Reply
Author
Message
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Topic: How to set the positionXY of Floating CXTPToolBar
    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.
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: 09 November 2007 at 12:38pm
Hi,
 
MoveWindow ? :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Tomasz View Drop Down
Senior Member
Senior Member


Joined: 05 August 2006
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomasz Quote  Post ReplyReply Direct Link To This Post 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 .
Back to Top
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post 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?
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: 12 November 2007 at 1:14am
Hikaroute, 
Just call pToolBar->MoveWindow or pToolBar->SetWindowPos to move it.
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.063 seconds.