Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : GUI page error...
Author | Message | ||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
Hi everyone. GUI setup 1 Font 7,4 GUI caption #1, "MAIN MENU:", 85, 15, LT, RGB(magenta) CLS GUI Page 1 Do:Loop Result is: GUI Page 1 Error: Invalid command. MMBASIC 5.2, on E100. Any ideas? Manual says this should work, unless I am missing something very obvious..... EDIT: It would appear that you DON'T specify the "GUI" part of this command, you just use PAGE 1 - I found that by accident while re-reading page 30 of the advanced manual, where they use a different syntax in the example. Do we have an error in the manual that needs fixing? Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5911 |
Never used the GUI PAGE commands so a guess. The system defaults to PAGE 1 so GUI PAGE 1 does nothing TRY GUI PAGE 2 which should give you a blank page then GUI PAGE 1 to go back to the start page. I expect that GUI PAGE 1 while on PAGE 1 should be OK but switching pages is worth a try. Jim VK7JH MMedit MMBasic Help |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3165 |
Good find, thanks Grogs. Yes, the PAGE command should not be prefixed with GUI. I will fix the manual in the next release. Geoff Geoff Graham - http://geoffg.net |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
I've been playing with the pages feature - having dropped the "GUI" from the front of it, and it certainly is a nice feature to have. I can call these directly from the command-prompt for the purposes of testing/debugging - pretty cool. Smoke makes things work. When the smoke gets out, it stops! |
||||
Print this page |