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

Home » Public Forums » archive » Text Widget Confession
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: Text Widget Confession [message #26726 is a reply to message #26626] Tue, 25 September 2001 10:33 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
>
> Oh, I don't think so. :-(
>
> In fact, this may be worse.
> But keep working.

I am sorry. I forgot there some inferior platforms are confused about
all the CR-LF and such...
The following Beta 2.02.0001-20010925-b has been tested on Mac, W2K and
HP-UX. Sorry, I am out of platforms. Besides, it is backwards compatible
with IDL 5.3 now. Other requests?

;****************
PRO Example_Event, event
Widget_Control, event.top, Get_UValue=textID
Widget_Control, textID, Get_Value=selectText, /Use_Text_Select
Widget_Control, textID, Get_Value=theText
; Added line
loc = Widget_Info(textID, /Text_Select)
loc = loc[0] - loc[1]*(!version.os_family eq 'Windows')
; End added line
jt = strjoin(thetext, string(1b))
js = strjoin(selecttext, string(1b))
rs = jt
; Modified line
strput, rs, string( byte(js) < 2b), strpos(jt, js, loc)
; End modified line
good_rows = where(strsplit(rs, string(1b), /extract) $
eq theText, count)
if count ne 0 then theText = theText[good_rows]
Widget_Control, textID, Set_Value=theText
END; -----------------------------------;****************

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A distracting puzzle
Next Topic: Xmanager R US

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

Current Time: Tue Dec 02 17:44:32 PST 2025

Total time taken to generate the page: 1.19802 seconds