One of the components the user can select will actually free space. I kind of thought that having "Space Required: -xxMB" would be a little odd, (not to mention it seems you can't do it) so I thought about chaning the actual text.
After messing about with SendMessage in .onSelChange, I found out that it changes the whole text area including the numbers (well duh) instead of that specifc text.
Also, as soon as the .onSelChange function ends, the text reverts back to default.
So, my question is, is it possible to change it when someone clicks on a component?
If so, how?
(Or should I just look into using a custom page with InstallOptions?)
Edit: On a non-related note, while I was looking through the documentation I saw this:
Sets the Size of the section specified by section_index. Note that the Index starts with Zero. The Value for Size must be entered in KiloByte and supports only whole numbers.Then the example gives:
Function .onInit
# set required size of section 'test' to 100 bytes
SectionSetSize ${test_section_id} 100
FunctionEnd