Hi All,
I have a project using a T4 with a 2.8" TFT w/touch and it is heavily menu driven. The length of the code is stacking up really quick just to create the different screen layouts, touch position coordinates and handling, etc etc. I would like to clean up the code and stuff a lot of this screen code into separate files (libraries?). Or at least I *think* this would be a cleaner approach. Perhaps I have the terminology wrong?
It would be nice to have each of the different screen layouts stored as separate files and called only when needed by a ~single line of code in the main program. This way, when/if I want to change a particular screen appearance I can open the file associated with that screen and edit it. As it stands there is about 1500 lines of code in my main program of which about 90% of it is drawing lines, placing text, etc etc for each of the screen layouts. It is quite unwieldy...
Thanks!
-Ash
I have a project using a T4 with a 2.8" TFT w/touch and it is heavily menu driven. The length of the code is stacking up really quick just to create the different screen layouts, touch position coordinates and handling, etc etc. I would like to clean up the code and stuff a lot of this screen code into separate files (libraries?). Or at least I *think* this would be a cleaner approach. Perhaps I have the terminology wrong?
It would be nice to have each of the different screen layouts stored as separate files and called only when needed by a ~single line of code in the main program. This way, when/if I want to change a particular screen appearance I can open the file associated with that screen and edit it. As it stands there is about 1500 lines of code in my main program of which about 90% of it is drawing lines, placing text, etc etc for each of the screen layouts. It is quite unwieldy...
Thanks!
-Ash