Windows Flags

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  julesd 4 months ago.

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

    julesd
    Participant

    Method New( title:String=”Simple mojo app”,width:Int=640,height:Int=480,flags:WindowFlags=WindowFlags.Resizable )

     

    How can I make the Resizable flag and Maximized flag work together.

    I have tried adding the Maximized flag (flags:WindowFlags=WindowFlags.Resizable.Maximized), but only one works at a time, usually the last one on the line.

    I do not get an error with this code, but only ‘Maximized’ works, cause it is at the end.

    #13658

    Mark Sibly
    Keymaster

    You’re meant to combine flags with the | ‘or’ operator, eg: WindowFlags.Resizable|WindowFlags.Maximized.

    The fact you can go WindowFlags.Resize.Maximized is a little bugette that I think has already been reported and has just been bumped for fixing priority!

    #13666

    julesd
    Participant

    Thanks, did try |Maximized but did not reallize it had to be |WindowFlags.Maximized

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

You must be logged in to reply to this topic.