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

Home » Public Forums » archive » Re: Help! Multiple widget objects in 1 program, sample code
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: Help! Multiple widget objects in 1 program, sample code [message #20989] Thu, 03 August 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Luis Alonso (luis.alonso@uv.es) writes:

>> P.S. Let's just say that program could be improved a LOT
>> more if you lost the Common blocks. :-)
>
> hey! that was one of my concerns in my yesterday's widget first contact
> (maybe RSI folks are borgs in disguise??). But i just couldn't figure out
> how to work that around.

My comment about COMMON blocks brought several e-mails as well
as this article. I really don't have time to explain the whole
thing, but as many of you know, I'm no big fan of common blocks,
and especially not in widget programs. Any widget program on
my web page will illustrate how to write programs without
them. And, of course, half my book is devoted to this
single topic. :-)

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
Re: Help! Multiple widget objects in 1 program, sample code [message #21001 is a reply to message #20989] Thu, 03 August 2000 00:00 Go to previous message
Luis Alonso is currently offline  Luis Alonso
Messages: 27
Registered: February 2000
Junior Member
> P.S. Let's just say that program could be improved a LOT
> more if you lost the Common blocks. :-)

hey! that was one of my concerns in my yesterday's widget first contact
(maybe RSI folks are borgs in disguise??). But i just couldn't figure out
how to work that around.

I've attached the code for you lo laugh at it... i mean to look at it ;)

Cheers

Luis Alonso

PS: by the way... on the trip back home i just recalled the right sentence:
'Sleep tight, and don't let the nite bugs bite' -which of course has a rime
as it should-


begin 666 widget2.pro
<encoded_portion_removed>
Re: Help! Multiple widget objects in 1 program, sample code [message #21006 is a reply to message #20989] Wed, 02 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
craigni@worldnet.att.net (craigni@worldnet.att.net) writes:

> I have a need to *not* have all my widgets in one giant clump. I've been knocking my head against the wall for a while
> on this. How can I make the sample code below close all open widgets when I hit the "Quit" button? Right now, only the
> "firstBase" widget object closes, and the "secondBase" widget object remains open.

Change this line:

secondBase = WIDGET_BASE( GROUP_LEADER = group_leader )

To this:

secondBase = WIDGET_BASE( GROUP_LEADER = firstBase )

Cheers,

David

P.S. Let's just say that program could be improved a LOT
more if you lost the Common blocks. :-)

--
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Call for Political Action (Was: Top 10 List)
Next Topic: Re: xwindow, idl5.2, win2k

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

Current Time: Wed Oct 08 17:35:44 PDT 2025

Total time taken to generate the page: 0.00667 seconds