Print Page | Close Window

Easy Q

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2230
Printed Date: 04 July 2024 at 10:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Easy Q
Posted By: lzars
Subject: Easy Q
Date Posted: 16 May 2005 at 12:39am

When I click and drag a tab to the left side of the screen I can drop it on the right side, so it looks like I have to sets of tabs. How do I do this programmatically. any help would be good

 

Thank you




Replies:
Posted By: SuperMario
Date Posted: 16 May 2005 at 7:19am
Try using the DoWorkspaceCommand method.

CommandBars.TabWorkspace.DoWorkspaceCommand XTP_ID_WORKSAPCE_MOVENEXT 




Posted By: SuperMario
Date Posted: 16 May 2005 at 11:37am
Why do you have an issue with my answer?  If you have an issue, please post it here.  If I understand your post correctly, it sounds like you have a TabWorkspace and you would like to programmatically move a tab from one position to another.

To create a new tab group you can specify:
CommandBars.TabWorkspace.DoWorkspaceCommand XTP_ID_WORKSAPCE_NEWVERTICAL


Then to move a tab to the new group:
CommandBars.TabWorkspace.DoWorkspaceCommand XTP_ID_WORKSAPCE_MOVENEXT

You are talking about the TabWorkspace, right?  Or maybe you are using DockingPanes?


Posted By: lzars
Date Posted: 16 May 2005 at 11:51am
sorry i prop it the wrong button  thanx  let me look at it once more


Posted By: lzars
Date Posted: 16 May 2005 at 11:57am
prob*


Posted By: SuperMario
Date Posted: 16 May 2005 at 12:01pm
I don't understand
Originally posted by lzars lzars wrote:

prob*


Posted By: lzars
Date Posted: 16 May 2005 at 12:07pm

what i want to do is create a form on the left the 5 on the right so after every new form i want on the right do i just call

CommandBars.TabWorkspace.DoWorkspaceCommand(XTP_ID_WORKSAPCE _MOVENEXT)

will this command only work for the last added tab or the current tab 

where can i read up on this



Posted By: SuperMario
Date Posted: 16 May 2005 at 12:16pm
Yes, it moves the currently selected item\tab, order does not matter.

For help, the link to the XTPWorkspaceCommand Enumeration in the help file has some good information.


Posted By: lzars
Date Posted: 16 May 2005 at 12:49pm

this doesn't work

i need to move it before the users sees it

MP.CommandBars.TabWorkspace.Refresh()

Dim ds As DataSet = CType(MdiChld, BasicSetsTableView).SetsTable.LocalDS

Dim MdiChld0 As New BasicTableView2

MdiChld0.MyTable = New MaterialsEditTable(MdiChld0, Now, DS)

MdiChld0.MdiParent = MP

MdiChld0.Show()

MP.CommandBars.TabWorkspace.Refresh()

MP.CommandBars.TabWorkspace.DoWorkspaceCommand(XtremeCommand Bars.XTPWorkspaceCommand.XTP_ID_WORKSAPCE_MOVENEXT)



Posted By: SuperMario
Date Posted: 16 May 2005 at 1:32pm
So the code works, only the you can see the tab before it is in the new position?  Maybe in NewItem event you can hide the tab, then make it visible after it is moved.  (I haven't tried this myself)



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