Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 14:52 04 Dec 2021 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 : CMM2 - simple TUI library

Author Message
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 496
Posted: 06:02pm 11 Dec 2020
Copy link to clipboard 
Print this post

Hi,
after modification of my TUI library now can be changed the font and colors. So maybe is usable also for somebody else then me, is on GitHub here.
It consists mainly from simple dialogs, but there is also file selector. In the file LIB_TEST.BAS are shown functions of the library and it's also commented/

Few screenshots:










 
Enjoy!
Jiri
Napoleon Commander and SimplEd  for CMM2 (GitHub),  CMM2.fun
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 161
Posted: 08:36am 12 Dec 2020
Copy link to clipboard 
Print this post

Thanks Jiri! I'm sure I'll find a use for this at some point.

Steve
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 496
Posted: 05:29pm 13 Dec 2020
Copy link to clipboard 
Print this post

Some news:
massive improvements of TUIinput (cursor keys)
TUIgetSelect and TUIfileSelect can use more extensions separated by comma:
      TUIfileelect(path, "BAS,INC") will allow to select FILEs ending with BAS or INC
added TUIempty ON/OFF for free dialog

Enjoy!
Jiri
Napoleon Commander and SimplEd  for CMM2 (GitHub),  CMM2.fun
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 496
Posted: 11:06pm 13 Dec 2020
Copy link to clipboard 
Print this post

Improved TUIinput, right now you can use:
shift DEL = erase all
DEL = erase right
BACKSPACE = erase left
CURSOR left and right
ENTER = input OK
ESC = cancel
Jiri
Napoleon Commander and SimplEd  for CMM2 (GitHub),  CMM2.fun
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 496
Posted: 12:21pm 07 Nov 2021
Copy link to clipboard 
Print this post

Hi all,
because of one my project, I have extended TUI.INC's TUIfileSelect(path AS STRING, ext AS STRING, root AS STRING) AS STRING for optional root parameter. When is not present (or =""), then nothing happens, else is this used as root directory for <ROOT> and <UP> menu (also it make sense to set path on call to >=root).

Enjoy!
Jiri
Napoleon Commander and SimplEd  for CMM2 (GitHub),  CMM2.fun
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 956
Posted: 10:41am 08 Nov 2021
Copy link to clipboard 
Print this post

Hi Jiri,

Thanks for creating this. Saves a lot of work if I have to do this for every project again, and again...

Volhout
If nothing goes right ... turn left
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 42
Posted: 04:14am 18 Nov 2021
Copy link to clipboard 
Print this post

I'll have to try this!  Nice work.  It reminds me of the Zinc libraries for Borland C many moons ago.  I really like that kind of lightweight interface.

John
John Wettroth
 
danielkos
Newbie

Joined: 10/07/2021
Location: Australia
Posts: 22
Posted: 06:09am 22 Nov 2021
Copy link to clipboard 
Print this post

In the past I've thought about writing a firmware setup utility (a front end for all the OPTION commands that you normally need to look up in the manual). This could be an awesome library for that kind of thing!
 
Print this page


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

© JAQ Software 2021