Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 08:13 03 May 2024 Privacy Policy
Jump to

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 Zealand
Posts: 9066
Posted: 05:31pm 20 Dec 2016
Copy link to clipboard 
Print this post

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? Edited by Grogster 2016-12-22
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5911
Posted: 06:18pm 20 Dec 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 3165
Posted: 09:50pm 20 Dec 2016
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9066
Posted: 11:15pm 20 Dec 2016
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024