in

C1 Community

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

Slide in and out events

Last post 04-28-2008 8:56 AM by SteffenJ. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-30-2008 8:50 AM

    Slide in and out events

    Hello there.

    I am running C1.Win.Command.2 version 2.0.20073.19306.

    I have put a C1CommandDock with a C1DockingTab containing only one TabPage on a form. I have turned on AutoHide and it works like a dream. But I would like to perform some code when the TabPage is slid out.

    I can't seem to find events fired when tab pages are slid in and out - do they exist?

    Best regards

    SteffenJ

  • 01-30-2008 3:59 PM In reply to

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

    Re: Slide in and out events

    The "Enter" event for the DockingTabPage control may be useful for this scenario.  It's called when the tab is slid out.

    -Greg 

     

  • 03-07-2008 7:34 AM In reply to

    Re: Slide in and out events

    greglutz:

    The "Enter" event for the DockingTabPage control may be useful for this scenario.  It's called when the tab is slid out.

    -Greg 

     

    Hello again.

    The Enter event does not fire when my tabs slide out.

    What I would like is having the tabs to have different sizes when they are slid out.
    I have put the C1DockingTab in a C1CommandDock that is docked to the bottom of the form. The C1DockingTab has three tab pages and the tabs at the bottom.

    Do you have a code sample or something that can lead me in the right direction?

    Best regards,

    Steffen

  • 04-07-2008 12:19 AM In reply to

    Re: Slide in and out events

    Try the 'Move' event on the C1DockingTabPage. This event is fired on slide in and slide out for each page on the C1DockingTab. You should be able to filter on the 'current' page at that point and adjust the sizes accordingly.

  • 04-28-2008 8:56 AM In reply to

    Re: Slide in and out events

    Thank you Super AdvancedEngine!

    This was a really great help. I do not know why I have not tried the Move event myself...

    But it works perfect on the TabPages. It fires for the page that is slid out (and in) so I check for the TabPage.Height property. It is 0 (zero) when the tabpage is slid in.

    Best regards,
    SteffenJ

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