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

Home » Public Forums » archive » Re: Problem with scrollable draw widgets and frames
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
Re: Problem with scrollable draw widgets and frames [message #11444] Wed, 15 April 1998 00:00
Harald Frey is currently offline  Harald Frey
Messages: 41
Registered: March 1997
Member
Dyer Lytle wrote:

> Hi all,
>
> I had an interesting problem today with a program which was
> giving me an error I don't understand. I've condensed the
> program and included it below. The program pops up a small
> widget with a 'pushme' button. When I push the button, the
> program attempts to pop up another widget containing a scrollable
> graphics window but it dies in the attempt. This is IDL 5.03
> and/or IDL 5.1 Beta running on a Sun Ultra-2 with the Solaris
> operating system.
>
> The funny thing is, if I remove the "frame = 1" keyword from the
> draw widget definition, it works fine!
>
> I don't know if this is platform specific, perhaps it is. Anyway
> the error message I get is (and I get dumped out of IDL!):
>

I get the same problem and error messages on sparc sunos unix 5.0.3.

Harald Frey
SSL-UCB
hfrey@ssl.berkeley.edu
Re: Problem with scrollable draw widgets and frames [message #11447 is a reply to message #11444] Tue, 14 April 1998 00:00 Go to previous message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <MPG.f9c6394ce0e0e42989780@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Dyer Lytle (dlytle@as.arizona.edu) writes:
>
>> I had an interesting problem today with a program which was
>> giving me an error I don't understand. I've condensed the
>> program and included it below. The program pops up a small
>> widget with a 'pushme' button. When I push the button, the
>> program attempts to pop up another widget containing a scrollable
>> graphics window but it dies in the attempt. This is IDL 5.03
>> and/or IDL 5.1 Beta running on a Sun Ultra-2 with the Solaris
>> operating system.
>>
>> The funny thing is, if I remove the "frame = 1" keyword from the
>> draw widget definition, it works fine!
>
> This code works fine on my Windows NT machine in IDL 5.0.3.
> Perhaps it is a Motif problem.

Works fine on my Mac, as well. Cast another vote for a Motif problem.

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
Re: Problem with scrollable draw widgets and frames [message #11448 is a reply to message #11447] Tue, 14 April 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Dyer Lytle wrote:
>
> Hi all,
>
> I had an interesting problem today with a program which was
> giving me an error I don't understand. I've condensed the
> program and included it below. The program pops up a small
> widget with a 'pushme' button. When I push the button, the
> program attempts to pop up another widget containing a scrollable
> graphics window but it dies in the attempt. This is IDL 5.03
> and/or IDL 5.1 Beta running on a Sun Ultra-2 with the Solaris
> operating system.
>
> The funny thing is, if I remove the "frame = 1" keyword from the
> draw widget definition, it works fine!
>
> I don't know if this is platform specific, perhaps it is. Anyway
> the error message I get is (and I get dumped out of IDL!):
>

Note that you can use the following workaround and it works
(I'm on a Sun Ultra1, IDL 5.0.3):

pro test2, leader
a = Widget_Base(Title='test', /Column, Group_Leader=leader, /Modal)
B = WIDGET_BASE(A, /FRAME) ; ADD THIS LINE
d = Widget_Draw(B, $ ; CHANGE ARG1 FROM "a" TO "B"
; frame = 1, $ ; COMMENT OUT THIS LINE
XSize=100, YSize=100, /Scroll, X_Scroll_Size=50, Y_Scroll_Size=50)

Widget_Control, a, /Realize
end

pro x_event, event
test2,event.top
end

pro test
x = Widget_Base(Title='test', /Column, XOffset=200, YOffset=200)
y = Widget_Button(x, Value='pushme')
Widget_Control, x, /Realize
Xmanager, 'x', x, Event_Handler='x_event'
end


Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: Problem with scrollable draw widgets and frames [message #11456 is a reply to message #11447] Tue, 14 April 1998 00:00 Go to previous message
dlhopols is currently offline  dlhopols
Messages: 10
Registered: April 1998
Junior Member
In article <35329F22.D77F9004@as.arizona.edu>,
Dyer Lytle <dlytle@as.arizona.edu> wrote:
>
> Hi all,
>
> I had an interesting problem today with a program which was
> giving me an error I don't understand. I've condensed the
> program and included it below. The program pops up a small
> widget with a 'pushme' button. When I push the button, the
> program attempts to pop up another widget containing a scrollable
> graphics window but it dies in the attempt. This is IDL 5.03
> and/or IDL 5.1 Beta running on a Sun Ultra-2 with the Solaris
> operating system.
>
> The funny thing is, if I remove the "frame = 1" keyword from the
> draw widget definition, it works fine!
>
> I don't know if this is platform specific, perhaps it is. Anyway
> the error message I get is (and I get dumped out of IDL!):

Hi Dyle,
I ran your program on my SGI
IDL> print,!version
{ mipseb IRIX unix 5.0 Apr 28 1997}

I get the same error messages as you and also get thrown out of IDL.
Without the FRAME, it works.

Rose





-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
Re: Problem with scrollable draw widgets and frames [message #11457 is a reply to message #11447] Mon, 13 April 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dyer Lytle (dlytle@as.arizona.edu) writes:

> I had an interesting problem today with a program which was
> giving me an error I don't understand. I've condensed the
> program and included it below. The program pops up a small
> widget with a 'pushme' button. When I push the button, the
> program attempts to pop up another widget containing a scrollable
> graphics window but it dies in the attempt. This is IDL 5.03
> and/or IDL 5.1 Beta running on a Sun Ultra-2 with the Solaris
> operating system.
>
> The funny thing is, if I remove the "frame = 1" keyword from the
> draw widget definition, it works fine!

This code works fine on my Windows NT machine in IDL 5.0.3.
Perhaps it is a Motif problem.

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Call External Query
Next Topic: Book: Java Programming with CORBA, 2/e

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

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

Total time taken to generate the page: 0.00744 seconds