|  | 
| Easy Q | 
| Post Reply   | 
| Author | |
| lzars   Newbie   Joined: 16 May 2005 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Topic: Easy Q 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   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 16 May 2005 at 7:19am | 
| 
   Try using the DoWorkspaceCommand method. CommandBars.TabWorkspace.DoWorkspaceCommand | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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 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)  Quote  Reply  Posted: 16 May 2005 at 11:51am | 
| 
   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)  Quote  Reply  Posted: 16 May 2005 at 11:57am | 
| 
   prob*
    | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 16 May 2005 at 12:01pm | 
| 
   I don't understand  
 | |
|  | |
| lzars   Newbie   Joined: 16 May 2005 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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. | |
|  | |
| lzars   Newbie   Joined: 16 May 2005 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  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) | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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)
    | |
|  | |
| 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 |