π
<-
Chat plein-écran
[^]

Scrollbars in Lua programs

Pour TI-Nspire OS 3.0 ou ultérieur.

Scrollbars in Lua programs

Message non lude 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?
Avatar de l’utilisateur
fredrik.ekelof
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 88%
 
Messages: 10
Inscription: 09 Oct 2019, 13:37
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Scrollbars in Lua programs

Message non lude 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
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Message non lude 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.
Avatar de l’utilisateur
fredrik.ekelof
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 88%
 
Messages: 10
Inscription: 09 Oct 2019, 13:37
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Scrollbars in Lua programs

Message non lude Ti64CLi++ » 20 Oct 2019, 20:46

Ok, sorry for those useless answers.
I keep looking for another program that does what you want.
Image
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Message non lude 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
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi

Re: Scrollbars in Lua programs

Message non lude 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.
Avatar de l’utilisateur
fredrik.ekelof
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 88%
 
Messages: 10
Inscription: 09 Oct 2019, 13:37
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Scrollbars in Lua programs

Message non lude Ti64CLi++ » 20 Oct 2019, 21:07

No problem, I'm sorry I can't help you more
Image
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi


Retourner vers Nspire-Lua

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 5 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
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
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2414 utilisateurs:
>2396 invités
>13 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)