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

Home » Public Forums » archive » Re: Scrolling text in a widget_label
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: Scrolling text in a widget_label [message #78647] Fri, 02 December 2011 08:20 Go to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
Yeah, I've read that tracking events are a delicate thing. My hope
would be that the Users will be able to deal with this, since the only
purpose of this was to show this long string. In my real problem, the
widget_label displays a file name, and for various reasons, I'd like
that file name to be the fullpath to the file. That said, it is a
real possibility that the filename will be longer than the space
available for it. All I wanted was a way of keeping the fullpath and
widget_label size, but allowing the user to see the filename. My
first hope was that I could use CONTEXT_EVENTS with a widget_label,
but alas. If all else failed, I was going to change the widget_labels
to widget_texts and then they could use the arrows to move around.
But the widget_texts take up (proportionally) more space on the GUI
than does the widget_label. I have space to spare, but I didn't want
to spare it to that....

Thanks again!!!

Russell



On Dec 1, 6:32 pm, David Fanning <n...@dfanning.com> wrote:
> Russell writes:
>> So, I did get it to do what I want, though I don't entirely understand
>> why it works.  It seems that widget_event(/nowait) returns the "bare
>> bones" structure of {ID:0, TOP:0, HANDLER:0} for all times that the
>> mouse is *inside* the widget.  When you move out, it will add the tag
>> "ENTER".  So it was simple enough to test on whether or not the
>> "ENTER" tag exists or not.  I've attached a quick script to illustrate
>> it.  The first function is from the IDL astro-library maintained by W.
>> Landsman --- just in case someone else is interested in this.  I'm not
>> sure it was worth all the time I spent on this, but it was a fun
>> exercise!  Now to figure out why widget_event changes its return
>> structure like that, and whether or not I can trust this in the
>> future....
>
> Pretty neat! :-)
>
> Just a word of warning, though. Tracking enter and exit
> events is *extremely* fragile and operating system dependent.
> It helps a great deal if you can train your users to move
> their cursors v-e-r-y s-l-o-w-l-y.
>
> I guess what I am saying is, this kind of thing works better
> on your computer than it does on everyone else's. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting one ps file with different plots in separate pages
Next Topic: Scrolling text in a widget_label

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

Current Time: Fri Oct 10 07:53:06 PDT 2025

Total time taken to generate the page: 0.79646 seconds