Easy Q |
Post Reply |
Author | |
lzars
Newbie Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Try using the DoWorkspaceCommand method.
CommandBars.TabWorkspace.DoWorkspaceCommand |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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 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? |
|
lzars
Newbie Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
sorry i prop it the wrong button thanx let me look at it once more
|
|
lzars
Newbie Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
prob*
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I don't understand
|
|
lzars
Newbie Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. |
|
lzars
Newbie Joined: 16 May 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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 BasicTableView2MdiChld0.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) |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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)
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |