Forum Index
hierarchical menu interface code

 
Author Message
ndudman



Joined: 25 Dec 2008

Posted: 02 January 2009, 20:26 PM    Post subject: hierarchical menu interface code

Hello

Does any have or use a hierarchical menu system to use in ZBasic for displaying on an LCD. I have used Tinymenu and just found Micro Menu, both in c... which I am looking at interfacing with the zx24n.

Just want to make sure Iḿ not doing things in a round about way.

Thanks
Neil
Back to top
cerickson



Joined: 20 May 2008
Location: Waikoloa Village, HI, USA

Posted: 03 January 2009, 1:15 AM    Post subject:

I have one I have been working on for one of my projects that uses a 4-line serial LCD and four pushbuttons.

I make no claim to programming greatness but I will send you a copy of what I have created if you are interested.

-Christopher Erickson
Back to top
ndudman



Joined: 25 Dec 2008

Posted: 03 January 2009, 7:37 AM    Post subject:

Hi Christopher

Yes I would be interested, thanks for sharing...

Regards
Neil
Back to top
cerickson



Joined: 20 May 2008
Location: Waikoloa Village, HI, USA

Posted: 03 January 2009, 20:35 PM    Post subject:

Here is a copy of my dual electrical generator controller project. It is about 50% complete. It has a menu system in it that I have been working to make modular and semi-universal. It uses a 4-line serial LCD and four pushbuttons.

Any and all help and suggestions welcome!

-Christopher Erickson



CKE Dual Gen controller.zip
 Description:
Dual electrical generator controller project. About 50 percent complete.

Download
 Filename:  CKE Dual Gen controller.zip
 Filesize:  53.19 KB
 Downloaded:  1027 Time(s)

Back to top
ndudman



Joined: 25 Dec 2008

Posted: 04 January 2009, 14:01 PM    Post subject:

Thanks Christopher

Its an education for me to see how other people do things, I may have some more questions/comments once I understand things Wink

Id written a simular DS1305 module also... but Iḿ sure I can improve it... havnt tested it yet.

Neil
Back to top
ndudman



Joined: 25 Dec 2008

Posted: 04 January 2009, 14:29 PM    Post subject:

Only my comments as I look through understanding things... really making the comments to learn more myself... so opolgies if Im wrong or say stupid things Smile dont mean to pick on code etc...

I had not realized that you can define functions/sub and leave off the byval or byref... and was supprised that the default if not specified was byref...

1) Just was confused, as it didnt seem that you modified some of the function paramters which were defined by default as byref ?

Ive attached the c code for the micromenu code, not my own, in case its usefull at all... Im still looking and working things out from your code Smile



MicroMenu.tar.gz
 Description:

Download
 Filename:  MicroMenu.tar.gz
 Filesize:  2.82 KB
 Downloaded:  1071 Time(s)

Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 04 January 2009, 16:40 PM    Post subject:

ndudman wrote:
I had not realized that you can define functions/sub and leave off the byval or byref... and was supprised that the default if not specified was byref...
This is clearly stated in the ZBasic Reference Manual section describing Subroutine definition:
ZBasic Reference Manual wrote:
The default passing convention, if neither ByVal nor ByRef is specified, is ByRef.

I suspect that some prefer to omit the ByRef/ByVal just to reduce typing. It is unfortunate, I think, that the default defined by VB6 is ByRef. It would be better if the default were ByVal in my opinion.
Back to top
ndudman



Joined: 25 Dec 2008

Posted: 04 January 2009, 23:22 PM    Post subject:

I didnt mean to say that its not clearly documented anywhere... sorry if it read like that... Id simply skipped over, or not seen that part when I was reading the manual... which is well and clearly written. Not meant as a criticism at all, but my own mistake.

Yes my thoughts as well that default would be better byVal, but Im pleased I noticed it finally in the clearly written docs.

Neil
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008, 2009, 2010 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group