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 
Switch to threaded view of this topic Create a new topic Submit Reply
widget_text [message #12074] Wed, 10 June 1998 00:00
lbryan is currently offline  lbryan
Messages: 4
Registered: June 1998
Junior Member
Hello all,

I've been experimenting with WIDGET_TEXT hoping to make a text box
which will show the user messages from anywhere in my application.
The goal is to have the messages appended to the text box on a new
line. Then when there are more messages than lines, the new message
will be placed on the bottom line and the oldest message will be
knocked off the top. As it stands,

widget_control, (*state_ptr).text_box, set_value = 'my text', /append

seems to add the new text message to the list, but I need to scroll
down (if /scroll is set), or down arrow to see the added text. Adding
the lines

(*state_ptr).top_line = (*state_ptr).top_line +1
widget_control, (*state_ptr).text_box, set_text_top_line = $
(*state_ptr).top_line

seems to work ((*state_ptr) is the uvalue of my top level base), but
adding these lines of codes at every message and adding a new variable
to my state_ptr seems a very inelegant solution. Is there a better
way to avoid this work around?

I'm running 5.1 beta3 on Win NT.

Lisa Bryan
Arete Associates
Tucson, Arizona
lbryan@arete-az.com

P.S. Is there really no way I can get rid of the frame around a text
box under Windows!?!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Upgrade from 3.6
Next Topic: Normally distributed vectors

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

Current Time: Wed Oct 08 15:36:52 PDT 2025

Total time taken to generate the page: 0.00426 seconds