Hehe, this is the Polish language - easy to distinguish, because it is not written in the Cyrillic alphabet
I recommend using Google Translate, and the best of Google Chrome browser, which automatically translates the whole page. I know English on an average level, so as I write a longer story, I am using the translator and possibly introduce its own amendments.
As for the program:
INI file is a plain text file with a different extension. Just save all the data as a text file - permanent element names and values of the variables, you can add the #comments.
Names of elements easily decipher. File name, the coordinates of the upper left and lower right corner of the element, the same text, I'm just not sure what it is OffsX and OffsY but also some coordinates, so come out later what is it.
Now I concentrated on the technical part of the program - I mean the general appearance and the ability to move objects with the mouse. All files FRM I converted to PNG and FOFRM (animation of the sequence of PNG files).
Unfortunately, over the last month I did not do anything because I was busy with another project.
It seems to me that the only thing that might be useful to you from my program, and even - may be exactly identical allowing any time to edit the data in my or your program - is a database.
I write database using JSON language that is compatible with many other programming languages and can transfer data between them.
My tutorial:
http://www.w3schools.com/json/json_files.aspYour tutorial:
https://code.google.com/p/rapidjson/wiki/UserGuide or
http://www.codeproject.com/Tips/805182/A-fast-JSON-parser-loader-for-your-Cplusplus-projeor another.
I suggest JSON file structure:
;===============Register Button
LogRegPicDn=MENUDOWN.PNG
LogReg=671 324 760 354
LogRegText=0 0 0 0
database([
{
"name":";",
"value":"===============Register Button"
},
{
"name":"LogRegPicDn",
"value":"MENUDOWN.PNG"
},
{
"name":"LogReg",
"value":"671 324 760 354"
},
{
"name":"LogRegText",
"value":"0 0 0 0"
}
]);
Theoretically, I can use simple variables here instead of an array, but the array allows you to upgrade and does not require manual numbering variables.
Coordinates best to save in this way. Before saving you should convert numeric values to string and combine in one word.
Characters = better to add when writing to the INI file.
JSON data file is a text file and can be saved with any extension, for example: .TXT, .JS, .PHP, .JSON, .H, .FONLINE, anything at all
Note: The JSON file could not be any comments.
Note2: I do not know how in C / C++, but in PHP special characters must be written as a string in PHP - that is, the \ should be written as \\, " as \" etc.
Note to the administrator: There is a bug in the WYSIWIG creator, because some spacing between the lines to intercede twice, when I intercede only once.