Forum > General >

{REQ} How to create a Tab system?

Reset12115432

GlorySploit Owner

Posts: 36

Threads: 18

Joined: Feb, 2022

Reputation: -1

Posted

Hi, Im currently working on a Executor. I use Ace Editor just like Synapse, I don't know how to add the Tab system tho?!.

Is there anyone who could help me creating a tab system?

would be awesome

  • 0

Languages: Lua, LuaU, C# 

SeizureSalad

i love femboys

Posts: 1012

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

this could shouldn't work

bool isTrue(bool e) {
      if(!(e != true){
        return true;
      }
      else if (!(!(e != true))){
        return false;
      }
      else {
        return e == !(!(true));
      }
}


void createTabs() {
    while(isTrue(true) == true) {
        createTabs();
    }
}
  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

Posts: 1167

Threads: 72

Joined: Oct, 2019

Reputation: 89

Replied

https://wearedevs.net/forum/t/23495

In This Thread ^ I Used FastColoredTextBox, All Tho You Can Replace It With A Web Browser And Stuff

  • 0

SeizureSalad

i love femboys

Posts: 1012

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

@Astronemi the best part is that it works :)

  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

DJgt

Escobar

Posts: 71

Threads: 0

Joined: Feb, 2022

Reputation: 1

Replied

Also these might not work since I use visual studio but try changing visualstudiotabcontrol1 with your editor

 

ADD:

TabPage newTab = new TabPage();
            FastColoredTextBoxNS.FastColoredTextBox textBox = new FastColoredTextBoxNS.FastColoredTextBox();
            newTab.Name = "Script" + (visualStudioTabControl1.TabCount + 1);
            newTab.Text = "New Tab  ";
            newTab.Parent = visualStudioTabControl1;
        textBox.Dock = DockStyle.Fill;
            textBox.Name = "fastColoredTextBox1";
            textBox.Parent = newTab;
            visualStudioTabControl1.SelectTab(newTab);
            AddTabButton.Left = AddTabButton.Left + 75;
            RemoveTabButton.Left = RemoveTabButton.Left + 77;
            if (visualStudioTabControl1.TabCount == 7)
            {
                AddTabButton.Hide();
            }
            if (visualStudioTabControl1.TabCount > 1)
            {
                RemoveTabButton.Show();
            }

REMOVE 


if (visualStudioTabControl1.TabCount > 1)
            {
                Control tabPageToRemove = visualStudioTabControl1.Controls["Script" + (visualStudioTabControl1.TabCount)];
                visualStudioTabControl1.SelectTab("Script" + (visualStudioTabControl1.TabCount - 1));
                visualStudioTabControl1.Controls.Remove(tabPageToRemove);
                AddTabButton.Left = AddTabButton.Left - 75;
                RemoveTabButton.Left = RemoveTabButton.Left - 77;
                if (visualStudioTabControl1.TabCount == 7)
                {
                    AddTabButton.Hide();
                }
                else
                {
                    AddTabButton.Show();
                }
                if (visualStudioTabControl1.TabCount == 1)
                {
                    RemoveTabButton.Hide();
                }
            }

  • 1

https://cdn.discordapp.com/attachments/1015248297906163773/1023178023748513832/giphy.gif

Posts: 1167

Threads: 72

Joined: Oct, 2019

Reputation: 89

Replied

@DJgt This Like The Bad Version Of My Code But Nice For Trying To Help

  • 0

DJgt

Escobar

Posts: 71

Threads: 0

Joined: Feb, 2022

Reputation: 1

Replied

np!, thanks for the rep :))

  • 0

https://cdn.discordapp.com/attachments/1015248297906163773/1023178023748513832/giphy.gif

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )