aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1403

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1403  Textfields & Scrollbars

le 05/05/2006 @ 09:12
par Garfield

Anonyme



Hi

I'm writing a program in which I want to display quite a bit of information on a page. Ideally I'd like an uneditable textfield with a scrollbar which I could populate with the text and allow the user to scroll down.

Unfortunately I can't see how to do this. The TEXTFIELD$­­$­­ statement will not include a scrollbar (any text beyond the size of the textfield gets lost), and I can't see any other way to display the information.

I can create a Form in a resource file and include a Textfield which I can select as uneditable and include a scrollbar, but then the only way to populate this field is with the UPDATEFIELD statement, but this will not let me pass the full text because of the limitation of variable size. This may have worked if there was such a thing as an UPDATEFIELD$­­$­­ statement.

What I would ideally be after is something similar to the ADVICEBOX statement but able to populate a textfield instead, with an optional scrollbar if the text exceeds the size of the textfield.

Can anyone help with how to achieve this?

Thanks.
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 06/05/2006 @ 17:18
par bh77a

Anonyme

visiteur
Hi Garfield,

I have come across no way to do this with a text field (doesn't mean it can't be done), but I have been rather satisfied with defining a string resource in with Bird in my resource file and then having the ADVICEBOX statement call it. If the string exceeds the screen, scroll arrows appear at the bottom and allow the user to navigate the information.

Regards,
bh77a
Ecrire à bh77a   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 06/05/2006 @ 19:19
par Garfield

Anonyme

visiteur
Hi bh77a

Thanks for your info.

I thought this was the case, and I may have no choice but to go down this route.

The only thing was that I wanted to display a small diagram in the bottom half/third of the screen with the scrollable text explaining the diagram in the top half/two-thirds. The ADVICEBOX statement unfortunately won't let me do this.

Laurent, are you there? Would scrollable textfields be something worth including in a future version?
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 06/05/2006 @ 20:55
par aldweb

Anonyme

visiteur
Hello Garfield,

Yes, I am here of course

You may use TEXTFIELD$­­$­­ too with up to 4KB characters (see MegaString paragraph), for long texts rather than TEXTFIELD$­­ which is limited to 63 characters.
Scrollbars are not natively attached to objects in iziBasic, you have to monitor them with some code.
In your case, you have to know the length of words/lines and adapt the content of the TEXTFIELD$­­ (or TEXTFIELD$­­$­­) accordingly. This is not very easy yet because there is not any function returning where the caret is in a field. So, some PP applet would be required at the moment to get this kind of information. This is something I know and I have it somewhere in my to do list for a next release of iziBasic...

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^