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

Home » Public Forums » archive » Re: Widget draw problems...
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: Widget draw problems... [message #15179 is a reply to message #15178] Thu, 29 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Luis Oliveira (euluis@netscape.net) writes:

> I have the following message error on my program, when I destroy a draw
> widget and create another in the same base widget (it isn't a top level
> base). But this doesn't happen all the times, just when I switch between the
> widgets without drawing more than one time to each!
>
> Also Windows�s GDI resources went low when I caused many of these errors. Next
> goes some output that I copied to this message:
>
> IDL> .STEP
> % Program caused arithmetic error: Floating illegal operand
> ;self.wdvel contains the ID of the draw widget:
> IDL> help, self.wdvel
> <Expression> LONG = 273
>
> ;The statement that caused the error was:
> widget_control, self.WDvel, /DESTROY
> ;self.WDvel is a draw widget ID.
>
> If you've stepped on this problem, please help me!

There is not enough information here to solve this
problem, but here are two things to think about:

1. Why in the world would you be destroying a draw
widget and creating another one? and,

2. Are you certain you are not confusing the draw widget's
identifier with the draw widget's window index number,
which is the *value* of the draw widget.

We would have to see more code to be certain of what you
are doing. But I've been racking my brain unsuccessfully
trying to think of a reason to destroy a draw widget. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Multiple widgetized windows in one application
Next Topic: Re: universal structure editor progress

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

Current Time: Fri Oct 10 09:33:50 PDT 2025

Total time taken to generate the page: 0.48043 seconds