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
Languages: Lua, LuaU, C#
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();
}
}Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
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
Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
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();
}
}
Cancel
Post
https://cdn.discordapp.com/attachments/1015248297906163773/1023178023748513832/giphy.gif
Replied
np!, thanks for the rep :))
Cancel
Post
https://cdn.discordapp.com/attachments/1015248297906163773/1023178023748513832/giphy.gif
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post