using multiple pages in the ide

What is the proper way to use multiple pages in the ide? I tried just pasting parts of my code there to neaten thing up but that doesn't work
basically I want to have one large if statement per tab, its for a touchscreen all the pages and menus I want to neaten the code up a bit

You could make each page a .h file and include them all in the main sketch.

Or make each new tab another ino/pde file, and let the compiler merge them.

Got it working, I had to make each tab a function then just call it from the main page
Much neater now, so 15pages instead of scrolling up and down looking for where they begin and end

winner10920:
Got it working, I had to make each tab a function then just call it from the main page
Much neater now, so 15pages instead of scrolling up and down looking for where they begin and end

Consider using a different IDE?! Arduino IDE is fairly simple and anything beyond a few hundred lines of code is hard to work on arduino ide. I'm on the same boat. I either modify code with another text editor winedt or emulate the code on a PC with Dev C++ ide.