comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » widget_text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: widget_text [message #29431 is a reply to message #2051] Thu, 21 February 2002 08:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
John Copley (john.copley@nist.gov) writes:

> It seems that widget_text cannot handle reasonably large string arrays
> and I'm wondering if anyone can suggest a workaround. I'd like to be
> able to display string arrays with about 100,000 characters total.
>
> Below are some lines of code where I generate an array of 1000
> strings, each of which is 12*n characters in length; within a loop n
> ranges from 1 to 10. I then seek to display the string array using
> widget_text. For n=1-3 it's OK but for larger n the number of lines
> displayed goes as follows: (n is in the first column and the number of
> lines is in the last column). (This is the output from the code)
> 1 12 12 14000 14000.0 1000
> 2 24 24 26000 26000.0 1000
> 3 36 36 38000 38000.0 1000
> 4 48 48 33380 50000.0 667
> 5 60 60 41136 62000.0 663
> 6 72 72 50868 74000.0 687
> 7 84 84 31936 86000.0 371
> 8 96 96 57752 98000.0 589
> 9 108 108 53160 110000. 483
> 10 120 120 35288 122000. 289

Humm. Here is what I get when I run the program in IDL 5.5 windows:

IDL> test_xdisplayfile
1 12 12 14000 14000.0 1000
2 24 24 26000 26000.0 1000
3 36 36 38000 38000.0 1000
4 48 48 50000 50000.0 1000
5 60 60 62000 62000.0 1000
6 72 72 74000 74000.0 1000
7 84 84 86000 86000.0 1000
8 96 96 98000 98000.0 1000
9 108 108 110000 110000. 1000
10 120 120 122000 122000. 1000

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_text (correction)
Next Topic: resizing tlb with /align_right, /align_bottom

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 17:06:17 PDT 2025

Total time taken to generate the page: 0.88255 seconds