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

Home » Public Forums » archive » Re: X-windows text events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
sec : U Re: X-windows text events [message #30165 is a reply to message #30030] Thu, 04 April 2002 17:02 Go to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
David Fanning wrote:
>
> Niel Malan (Niel.Malan@aber.ac.uk) writes:
>
>> The idea of my line-based text widget is that it should only select lines, return the selected line as GET_VALUE, and replace
>> the selected line with SET_VALUE. I do that by capturing events from a text widget, examining the position of the
>> cursor/selection, and then setting the selection to the beginning and end of that line. WIDGET_CONTROL's GET_VALUE and
>> SET_VALUE then uses this selection.
>
> Did I say "user did something wrong" theory? I meant
> "IDL is nuts" theory. Sorry. :-(
>
> I don't see anything at all wrong with the way
> you wrote your compound widget. But I have to
> tell you that it doesn't work so well on Windows
> machines. (We might have been able to predict this.)
>
> As I spent nearly two weeks testing one time, IDL
> makes it difficult (impossible?) to select a line
> of text from a text array in a text widget. There
> must be something about the way lines end in Windows,
> but the counting is WAY off, using the keywords you
> use in your program. I find I have to select the line
> twice to get the program to work properly. The first
> time, it grabs characters from the line above in the
> selection, although it doesn't report these extra
> characters when it does the Get_Value thing.
>
> Anyway, I don't see any of the odd sorts of things
> you report. But if I did, it wouldn't surprise me
> much. :-)
>
> Cheers,
>
> David
>
> P.S. Let's just say I found list widgets handy for
> selecting lines of text. :-)


Am I allowed to say that Niel's widget works
just fine under OpenVMS, IDL v5.4??

In terms of selecting the text anyway. It does produce
an event for every cursor movement, and the associated
print of the Start and End positions and timestamp.

Andrew

------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108

Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL FFT (spec -> interferogram)
Next Topic: X-windows text events

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

Current Time: Sun Oct 12 02:36:34 PDT 2025

Total time taken to generate the page: 0.24012 seconds