tenij000 Senior Member Joined: 30/05/2025 Location: NetherlandsPosts: 106
Posted: 12:32am 24 Jun 2025
those check boxes or switch other gui items i have to do that option somthing but says it is perament does that mean can only set 1 time the amount of switches check boxes etc
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3216
Posted: 02:07am 24 Jun 2025
Most permanent options can be changed by first removing them with:-
OPTION xxx DISABLE
Then entering the revised option.
There are a few that can changed by just entering the revised option.
The Advanced Graphics PDF doesn't say which method so just try it.
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3362
Posted: 03:31am 24 Jun 2025
In short, YES.
You only define a GUI control once (preferably at the start of the program) and then it appears on the screen and will be managed by MMBasic. The user can then touch it to turn it off/on, etc and you can read its control property in your program to determine what the user has done.
You can also remove the GUI control but it is best left there for the duration of your program. You can also hide and restore GUI controls. Read the Advanced Graphics PDF as it has a detailed description of how to use this feature.
Geoff
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6529
Posted: 05:18am 24 Jun 2025
I think he is referring to
OPTION GUI CONTROLS nnn
You can change to number of controls but not within a program. Changing the number of GUI controls causes memory to be reallocated.
A good start is to set the number of controls to 39 which reserves 2k bytes. Setting 40 will double the allocated memory.
Jim
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3216
Posted: 05:35am 24 Jun 2025
That would be useful in the Advanced Graphics PDF.
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3362
Posted: 06:57pm 24 Jun 2025
On Page 1 of the manual the option is described quite clearly:
Geoff
tenij000 Senior Member Joined: 30/05/2025 Location: NetherlandsPosts: 106