π
<-
Chat plein-écran
[^]

Scrollbars in Lua programs

Pour TI-Nspire OS 3.0 ou ultérieur.

Scrollbars in Lua programs

Unread postby fredrik.ekelof » 20 Oct 2019, 19:39

Hi

I wonder if it is possible to add scrollbars to a lua program window? What I mean is, similar behavior as most programs do when screen content is bigger then screen/window size.

Example: My program is designed for full screen 212 x 318 px ,ratio (0.67). Computer screen has been considered and program scale accordingly. Lets say I would like to split the screen with another page. Instead of the window scaling to another ratio, I would like to "lock" the ratio to 0.67 and have scrollbars to view content that does not fit in the new screen ratio.

If scrollbars is not possible, is there any other way to make the "canvas" bigger then screen size?
User avatar
fredrik.ekelof
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 0%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):

Re: Scrollbars in Lua programs

Unread postby Ti64CLi++ » 20 Oct 2019, 19:46

There are libraries for that, such as ETK, or WzGuiLib.
A demo for ETK : archives_voir.php?id=9275
A demo for WzGuiLib : archives_voir.php?id=3834
Image
User avatar
Ti64CLi++Modo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 76.6%
 
Posts: 3166
Images: 61
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
Class: Maths Sup
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Unread postby fredrik.ekelof » 20 Oct 2019, 20:44

Thanks, but I am not sure those libraries contain the functionality I am looking for.

WzGuiLib does indeed seem to support window content bigger then the screen, however I noticed a comment in the code on row 1683: "cant use: scrollbar, progressbar, statusbar", so I am not sure if I can use that.

The ETK demo does not behave very well on split screen, so I assume window scrollbars is not included, even though ETK contains alot of other goddies.
User avatar
fredrik.ekelof
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 0%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):

Re: Scrollbars in Lua programs

Unread postby Ti64CLi++ » 20 Oct 2019, 20:46

Ok, sorry for those useless answers.
I keep looking for another program that does what you want.
Image
User avatar
Ti64CLi++Modo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 76.6%
 
Posts: 3166
Images: 61
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
Class: Maths Sup
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Unread postby Ti64CLi++ » 20 Oct 2019, 20:50

Perhaps you can find something interesting in the source code of EEPro, which does support scrolling, with scrolling bar as you can see:
https://github.com/adriweb/EEPro-for-Nspire/
Image
User avatar
Ti64CLi++Modo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 76.6%
 
Posts: 3166
Images: 61
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
Class: Maths Sup
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Unread postby fredrik.ekelof » 20 Oct 2019, 21:06

Yes, thanks!

Formula pro has vertical scrollbars. They are not exactly what I am looking for, but I will try to understand the code and then rethink my program design if needed.
User avatar
fredrik.ekelof
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 0%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):

Re: Scrollbars in Lua programs

Unread postby Ti64CLi++ » 20 Oct 2019, 21:07

No problem, I'm sorry I can't help you more
Image
User avatar
Ti64CLi++Modo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 76.6%
 
Posts: 3166
Images: 61
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
Class: Maths Sup
GitHub: Ti64CLi


Return to Nspire-Lua

Who is online

Users browsing this forum: MSN [Bot] and 2 guests

-
Search
-
Featured topics
Concours TI-Planet-Casio de rentrée 2019. 3 défis pour plus d'une 15aine de calculatrices graphiques et nombre de goodies sortant de l'ordinaire ! :D
Comparaisons des meilleurs prix pour acheter sa calculatrice !
12
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...

Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety 
-
Stats.
707 utilisateurs:
>647 invités
>55 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)