π
<-
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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 88%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):
MyCalcs profile

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 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.3%
 
Posts: 3441
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 88%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):
MyCalcs profile

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 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.3%
 
Posts: 3441
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
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 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.3%
 
Posts: 3441
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 88%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):
MyCalcs profile

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 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.3%
 
Posts: 3441
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi


Return to Nspire-Lua

Who is online

Users browsing this forum: No registered users and 23 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
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 Calculatrices à acheter chez Calcuso
-
Stats.
2036 utilisateurs:
>2016 invités
>16 membres
>4 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)