Search Unity

How Do I Dock Windows Together?

Discussion in 'Immediate Mode GUI (IMGUI)' started by pogoli, May 30, 2008.

  1. pogoli

    pogoli

    Joined:
    May 30, 2008
    Posts:
    41
    I want to have two windows attached to each other such that the dragging of one, drags them both. I know I can pass coordinate data between the two and set this up manually, but I was hoping for a clever way to have DragWindow() handle both of them.

    I have a "MainWindow" that contains a reference to another subwindow. Which subwindow is shown (if any) depends on some buttons in the main window. I am trying to have the drawing function inside GUI.Window() for the main window take care of drawing both windows. I know I am probably doing this wrong, and am trying some other things.

    Does anyone have any suggestions/tricks for me on how to set this up?

    Thanks!

    ~Aaron
     
  2. alexander

    alexander

    Joined:
    Mar 28, 2008
    Posts:
    180
    Hmm, haven't tried this way, but maybe you can do it like the 2D-tutorial describes it for the platforms.
    I think it was the script "CombineChildren".

    But as I said, i haven't tried that way. :?

    Alex
     
  3. pogoli

    pogoli

    Joined:
    May 30, 2008
    Posts:
    41
    It looks like CombineChildren deals with meshes. I want to do this with GUI.Window()'s.