π
<-
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.4%
 
Messages: 3444
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.4%
 
Messages: 3444
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.4%
 
Messages: 3444
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.4%
 
Messages: 3444
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 7 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Offre de test des nouveautés de rentrée 2024 par Casio. Enseignant(e), reçois gratuitement 1 exemplaire, à ton choix, de la Graph Light ou bien de la Graph Math+
14€ remboursés par Casio sur l'achat de ta calculatrice Graph 35 d'ici le 31 Octobre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 90+E d'ici le 31 Décembre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 25 d'ici le 31 Décembre 2024
8€ remboursés par Casio sur l'achat de ta calculatrice Graph Math+ d'ici le 31 Octobre 2024
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
3€ remboursés par Casio sur l'achat de ta calculatrice fx-92 Collège d'ici le 30 Septembre 2024
5€ de remise immédiate sur l'achat de ta calculatrice TI-83 Premium CE Edition Python chez les revendeurs partenaires
4€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced Edition Python chez les revendeurs partenaires
3€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced chez les revendeurs partenaires
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234567891011121314
-
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.
1028 utilisateurs:
>991 invités
>31 membres
>6 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)