![]() |
Forum Index : Microcontroller and PC projects : gui items like check boxes etc
Author | Message | ||||
tenij000 Newbie ![]() Joined: 30/05/2025 Location: NetherlandsPosts: 22 |
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: 2566 |
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: 3281 |
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 Geoff Graham - http://geoffg.net |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6262 |
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 VK7JH MMedit |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2566 |
That would be useful in the Advanced Graphics PDF. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3281 |
On Page 1 of the manual the option is described quite clearly: Geoff Geoff Graham - http://geoffg.net |
||||
tenij000 Newbie ![]() Joined: 30/05/2025 Location: NetherlandsPosts: 22 |
OPTION GUI CONTROLS 39 GUI TEXTBOX 13, 20, 30, 150, 30, RGB(255,255,255), RGB(0,0,0) CtrlVal(13) ="hello" is also a way to disable 1 if needid GUI TEXTBOX 13 <<<< then change it for example into somthing else like checkbox |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6262 |
Please read the Advanced Graphics Functions.pdf You have GUI HIDE GUI SHOW GUI DISABLE GUI ENABLE GUI DELETE Unless you are running short of memory, there is no need to DELETE VK7JH MMedit |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |