UNSOLVED how to add custom button to the SpaceCenter’s display menu ?



  • Hey guys,
    Is there any example of how to add custom button to this menu on the right?
    a0ad2da2-df81-4007-a810-857a85ac9c59-image.png

    Cheers



  • @frederik said in how to add custom button to the SpaceCenter's display menu ?:

    for now this is not possible...
    Space center menus are on the restructuring table. To split up into a menu for display options and a menu for typographic options.
    I can imagine adding a similar notification like in a glyph window or font overview

    So I imagine that it is also not possible for the right-click menu in SpaceCenter?

    this button, on top of the SC, for now, should be enough. Thanks!


  • admin

    second thought:

    this works:

    from mojo.UI import OpenSpaceCenter
    import vanilla
    
    w = OpenSpaceCenter(CurrentFont(), newWindow=True)
    
    w.top.setPosSize((0, 0, -100, 40))
    w.myButton = vanilla.Button((-100, 10, -10, 22), "hit")
    

  • admin

    for now this is not possible...

    Space center menus are on the restructuring table. To split up into a menu for display options and a menu for typographic options.

    I can imagine adding a similar notification like in a glyph window or font overview