Remove close button from single tab

About Monkey 2 Forums Monkey 2 Programming Help Remove close button from single tab

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

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

    Hezkore
    Participant

    I have a TabView with roughly 10 tabs in it.
    I want 9 of those to be closable (with the X icon next to them) but one should not be closable.

    Any way to do this?

    #11795

    nerobot
    Participant

    We can’t get any TabButton from TabView. And TabButton has no property Closable.

    Easiest way to manage closable state is to add additional parameter closable:Bool=True into TabView.AddTab().

    You can do it yourself or ask to Mark to add this ability.

    It would be better to have it in mojox.

    #11796

    nerobot
    Participant

    For Ted2Go I use my own versions of TabView and TabButton (copied from mojox) to be able to change them for my needs.

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

You must be logged in to reply to this topic.