Jump to content

The proper way to organize a GUI project


Recommended Posts


Until now i've always coded on a single file, which is fine as i start, but not so much when i reach 1k+ lines.

I have to change the way i code, so i thought about making multiple files.

However, maybe there is a standarized way of doing. I'm always using OnEventMode. Here's what i thought :


1 file for the main loop

1 file for the GUI(s)/Anything that would affect the entire project (config/global variable)

1 file for control-related function (On button press, combo box etc)

1 file for regular functions

1 file for each type of control (though some could be regrouped, like edit and input)

1 file for the includes


What do you think ? Would that be too much ? How do you do it ?

Maybe that is more a discussion thread than a GUI help, i'll let you mods decide.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...