Garlic3 was started as Gambas-3 follow-up of the original Garlic project, intended for Gambas2 code; New Gambas3 projects/code will end up here.
Some Gambas2 projects from the original Garlic might be "translated" to Gambas3, but not for sure; updates on the original Garlic projects (in Gambas2) might still happen there.
Content:
RunCounter
A class to create an object from in the Main and:
- appStart : must be called at startup
- appClose: must be called at (normal) close/quit
- getRunCount
- getCloseCount
- getLastStarted: stored datetime from Now() at last start
- getLastClosed: stored datetime from Now() at last quit
- resetCounter: run count to zero
- resetCloseCounter: close count to zero
- forceRunCount(i) : to set a RunCount value in the settnigs file (eg for testing an application)
- getVersion: version number (from VERSION file)
** EmptyProject **
Start with this (not so empty) project and you get:
a default menu with File and ? with submenu's like About, ..
an About screen with version information and configurable title/logo *
License/Changes/WhatsNew screens that load the content from a textfile, e.g. Changes.txt
Counter for startup and shutdown of the program (Settings management)
**GbSettingsTool **
Generate gambas source code for the FSettings that you might need in almost any application.
lets you enter the needed variables in a table
generates the code for your 'Settings Form', and/or the code to save the settings after data entry in the form.
The code is shown on screen and written to a file in a choosen directory.
The table with settings is saved itself (so that you can reload it later)
Sample settings form is included with empty fields used by the generated code.
You will almost always want to store some local settings for an application. For every application you have to make a screen with text for each setting, textboxes for entering the value, and code to save the setting.
Boring, and most of all you want to continue with the actual project. So take a default Settings screen with a number of fields to enter data, and use the code generated by GbSettingsTool.