DouglasBell
Active member
- Joined
- Aug 16, 2011
- Messages
- 38
- Programming Experience
- Beginner
Hi All
I have a form with 10 buttons, these buttons are dynamic based on what is in an ini file. The whole system works great but it is a nightmare to manage the content as the whole program works on this ini file and at the moment the ini file is 4000 lines long so if I have to change a button, add a button or delete a button I have to almost reorganize 4000 lines.
So what I would like is to find a better way for my dynamic buttons, even at 4000 lines the program is very very fast so I dont want to lose this. My thoughts initially were to have a database for the buttons but I am just not sure how to deal with this as my main menu might be.
A B C D E F G H I J
If you push button A it may have another 10 sub headings, then if you push a subheading it may have another 10 underneath, so each button may have multiple sub levels, this Touchscreen system is used in many areas so at the moment I just redo the ini file and it configures the touchscreen menu system, so the Touchscreen system is completly dynamic so it has multiuse.
Has anyone here come up with or use a system similar and can give me some pointers on how to handle the buttons using a Database so it is easier to manage buttons, or are there better ways to do it, also the sub levels must be dynamic too as there could be 2 or 20 depending on the choices.
Cheers
Dj
I have a form with 10 buttons, these buttons are dynamic based on what is in an ini file. The whole system works great but it is a nightmare to manage the content as the whole program works on this ini file and at the moment the ini file is 4000 lines long so if I have to change a button, add a button or delete a button I have to almost reorganize 4000 lines.
So what I would like is to find a better way for my dynamic buttons, even at 4000 lines the program is very very fast so I dont want to lose this. My thoughts initially were to have a database for the buttons but I am just not sure how to deal with this as my main menu might be.
A B C D E F G H I J
If you push button A it may have another 10 sub headings, then if you push a subheading it may have another 10 underneath, so each button may have multiple sub levels, this Touchscreen system is used in many areas so at the moment I just redo the ini file and it configures the touchscreen menu system, so the Touchscreen system is completly dynamic so it has multiuse.
Has anyone here come up with or use a system similar and can give me some pointers on how to handle the buttons using a Database so it is easier to manage buttons, or are there better ways to do it, also the sub levels must be dynamic too as there could be 2 or 20 depending on the choices.
Cheers
Dj