GUI and GameWindow

About Monkey 2 Forums Monkey 2 Programming Help GUI and GameWindow

This topic contains 2 replies, has 2 voices, and was last updated by  cocon 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12413

    cocon
    Participant

    How to have the main window split so the left can contain buttons and the other be used for drawing?

    #12414

    nerobot
    Participant

    Look at DockingView, it’s one of powerful views.

    You can use it to split any area by parts.

    Then assign that dock as window.ContentView.

    Canvas is label here, but you should to make own class that extends View (inner window class as a variant) and to delegate drawing to it.

    For testing bounds you can set backgroundcolor property of your view via view.Style.BackgroundColor=…

    And look at docs of view.Layout property, Layout=”fill” is good to have when view became contentView.

    #12427

    cocon
    Participant

    OK I figured out. 🙂

    If anyone is interested to use it, perhaps to be added in the mojox tests.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.