aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1403

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1403  Textfields & Scrollbars

05/05/2006 @ 09:12
by Garfield

Anonymous



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.
  Post an answer  Top

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

Anonymous

visitor
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
Write to bh77a   Post an answer  Top

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

Anonymous

visitor
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?
  Post an answer  Top

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^