Currently there are a large number of Windows resources embedded in the Suneido executable (icons, cursors, bitmaps, and so forth). Some of these are cSuneido-specific (i.e. the DB rebuild dialog) but most of them are intended to be used from Suneido code. This leads to the following problems:
Compounding this, there is the Suneido "Book" database format which is also being used to store resources. Problems:
ImageButtonControl
loads its pictures from a table in book format).It would be preferable to define a simple "resource" table format capable of storing any type of resource, including icons, cursors, bitmaps, pngs, whatever, you name it. We would then:
LoadCursor(ResourceModule(), ...)
with something along the lines of Resources.LoadWindowsCursor(tablename, cursorname)
.
Diff: