in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Docking issues with C1CommandDock

Last post 12-21-2007 12:08 PM by C1_GregL. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 12-17-2007 3:04 AM

    Docking issues with C1CommandDock

    I am a previous user of ComponentOne and have returned to using it a couple days ago. I used to use the C1CommandDock all the time, along with C1DockingTab.

    I remember the C1CommandDock (with a C1DockingTab within it) used to respect the docking of menubars and statusbars. More specifically, when moving around the C1CommandDock (floating it and docking it to another location, right left top bottom etc) it would keep the, for example, menubar taking up the entire top of the form and the statusbar the entire bottom. I find now that it ignores the statusbar as "owning" the bottom of the form. For example when trying to dock the dockingtab to the left, it takes up the entire right side and shrinks the statusbar.

    Trying to let you get a picture of it:

    instead of being like this: 

    menu bar
    d
    o
    c
    k
    t
    a
    b
    statusbar
     

    its like:

    menubar
    d
    o
    c
    k
    t
    a
    b status bar

    Like i said, i dont remember older versions (back when i used to use C1) doing this.

     

    Any help would be greatly appreciated

     

    Regards

     

    Paul
     

  • 12-17-2007 10:39 AM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Docking issues with C1CommandDock

    I've noticed this too.  But it only appears to happen if you add the C1StatusBar to the form after the C1CommandDock.  You don't have to delete your CommandDock, just go to the Designer code and rearrange these lines to be in this order:

    Me.Controls.Add(Me.C1CommandDock1)

    Me.Controls.Add(Me.C1StatusBar1)

    This looks backwards but this should work, let me know if it doesn't (and what version you're using)

    I also recommend you download the latest version of C1Command.  You can get the whole studio from the site, or just this control here.

     

    Regards,
    Greg L

  • 12-17-2007 7:48 PM In reply to

    Re: Docking issues with C1CommandDock

    Yeah I considered that and have tried adding the statusbar and commanddock in different orders. It still didn't work.

    I already have/was using the version you have linked in your reply.

    Also it's worth noting that I also have the same problem using the commanddock with the new ribbon control.

    Any other ideas?
     

  • 12-17-2007 8:04 PM In reply to

    Re: Docking issues with C1CommandDock

    Just another note:

    To replicate:
    1. Create a new form/project
    2. Add a C1menu
    3. Add a C1statusbar
    4. Add a C1commanddock, dock to left and put a dockingtab inside it
    5. Run form
    6. Drag the dockingtab from the left docked position to the right docking until the outline auto docks onto the right (keep your mouse down, i.e. don't 'drop' the dockingtab to the new position yet).
    7. The outline should be correct, in that it doesnt encroach on either the menubar or statusbar, however notice (at least this is what I see happen for me) the actual dockingtab on the left (in its original position) has now extend down in a sense and pushed the statusbar aside (i.e. takes up the left of the form from the bottom of the menubar to the bottom of the form, not the top of the statusbar).
    8. now when you drop the dockingtab, i.e. dock it, to the right, and then move it back to the left again you'll now notice the docking outline ignores the statusbar.

    hopefully this can replicate it on your end, if not... im stumped as to what may possibly be different on my machine.

    regards

    Paul
     

  • 12-18-2007 9:21 AM In reply to

    Re: Docking issues with C1CommandDock

        Im just here stating I to am having the same problem. And that i would love to see this problem resolved. If you need vb.net examples i would be more then willing to produce them for you.  I have followed the same steps as Obsolete with the same problem. What i find more frustrating is that once and a while the docking behavior will fire as i desire but most the time it just over pushing the status bar to the side.  I have used the ribbon status bar and toolbar and the standard ones with the same results.

    Filed under:
  • 12-18-2007 12:13 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Docking issues with C1CommandDock

    by following those steps I'm not able to clearly see a problem.  When I add a CommandDock to the right side of the form (was this supposed to be mentioned in the steps?) and when I set the DockingTab.Alignment = Right, then I am able to dock on the right (step 6), otherwise step 6 is impossible for me.  I see no trouble but when I try to dock on the right from a floating window I sometimes see the blackbounding box is too large, and it pushes the C1StatusBar over.  I'm not sure if the tab aignment or number of tabs makes a difference for you.

    With only 1 tab on the DockingTab it makes docking on the form a challenge in the first place.  If you add more do you still see the problem?  Can we produce this error with multiple DockingTabs or multiple DockingTabPages?

    Please provide a sample with exact steps, and version numbers for C1Ribbon and C1Command.  This way I think things will be clearer.

    I do believe there is a problem, but without exact steps to produce the error it will be harder to get anyone to fix it.

    Thanks,
    Greg L

  • 12-19-2007 2:36 AM In reply to

    Re: Docking issues with C1CommandDock

    greglutz:
    by following those steps I'm not able to clearly see a problem.  When I add a CommandDock to the right side of the form (was this supposed to be mentioned in the steps?) and when I set the DockingTab.Alignment = Right, then I am able to dock on the right (step 6), otherwise step 6 is impossible for me.
     

    Step 6 is during runtime (note step 5).

    There is only 1 single commanddock, initially set to dock left, with Auto docking properties all set to true. Having multiple commanddocks and turning autodocking off works fine, the issue in question here is with the auto docking.

    Hope that helps.

     

  • 12-20-2007 11:50 AM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Docking issues with C1CommandDock

    What versions are you using (C1Command and C1Ribbon)?  I'm using 20073.19306 and 20073.76

    I am able to reproduce this only when I set Dockingtab.Alignement = Right, CommandDock.AllowFloating = False and the problem occurs when I move the tab from the right back over to the left (after moving it successfully from the left to the right).  So i'm confused why setting these few properties (Alignment and AllowFloating) are only necessary on my end.  If I leave the DockingTab.Alignment property to Bottom then I cannot dock to the right at all with auto dock, it will only float or revert back to the original spot if I have AllowFloating = False.

  • 12-21-2007 12:08 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Docking issues with C1CommandDock

    Thank you for your patience.  This issue has been escalated to be fixed and I will keep my eye on it.

     

    *Edit: This issue was resolved in build 19308.  Expected release in June as part of V2 or watch for it here: http://prerelease.componentone.com/

    Regards,
    Greg

Page 1 of 1 (9 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.