![]() |
"Groups" for the TabWorkspace |
Post Reply ![]() |
Author | |
MNovaro ![]() Groupie ![]() ![]() Joined: 20 June 2006 Status: Offline Points: 71 |
![]() ![]() ![]() ![]() ![]() Posted: 20 June 2006 at 9:29am |
I'm not able to work out how to use the "Groups" for the TabWorkspace. I like the group functionality, and I need to use it, but ...it does not work (as expected, at least!) I did the following modifications to the "TabManager" sample: insde the frmDocument, I added a command button with this code: Private Sub Command1_Click() Dim a As TabControlItem With fMainForm.CommandBars.TabWorkspace Set a = .FindItem(Me.hwnd) .EnableGroups .CreateGroup a, True .GroupSplitter(0) = 1000 End With End Sub I expected to see the current form becoming the "master" of a new group. But, what I see is only that the current form tab becomes invisible, and I can't see any group... Any help on this?? |
|
![]() |
|
MNovaro ![]() Groupie ![]() ![]() Joined: 20 June 2006 Status: Offline Points: 71 |
![]() ![]() ![]() ![]() ![]() |
I also tried with .Refresh of the tabs, with no luck... Any help on this?? ![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
hi,
EnableGroups must be called only once before any document created.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MNovaro ![]() Groupie ![]() ![]() Joined: 20 June 2006 Status: Offline Points: 71 |
![]() ![]() ![]() ![]() ![]() |
Hi, Oleg
thanks for the reply. I tried what you suggested, in the example "TabManager", calling this: CommandBars.TabWorkspace.EnableGroups in the MDIForm_Load procedure, before the call to LoadNewDoc. This ""works"", but has a strange behaviour, since: 1. the MDI child form "title bar" (i.e. the blue line with the tile above) is shown even if the form is maximized 2. trying to drag a form to create a new group, before showing the menu "create new group" I can't see any form for a while So, I tried to create a new project, adding a MDI form + a child form and I wrote this simple code: Private Sub MDIForm_Load() Dim a As Form1 Dim Workspace As TabWorkspace Set Workspace = CommandBars1.ShowTabWorkspace(True) ' Workspace.EnableGroups Set a = New Form1 a.Show Set a = New Form1 a.Show End Sub This works, but if I uncomment the line "Workspace.EnableGroups", then NO MDI child forms are shown anymore!! What's going on? I think that I'm missing something basic, but where?? Thanks for the reply, again Marco |
|
![]() |
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 |