Re: Source Code: A min/max compound widget [message #12934] |
Thu, 24 September 1998 00:00  |
Doug Larson
Messages: 10 Registered: September 1998
|
Junior Member |
|
|
<HTML>
<FONT FACE="Courier New,Courier">David Fanning wrote:</FONT>
<BLOCKQUOTE TYPE=CITE><FONT FACE="Courier New,Courier">Rose (rmlongfield@my-dejanews.com)
writes:</FONT><FONT FACE="Courier New,Courier"></FONT>
<P><FONT FACE="Courier New,Courier">>
I am re-visiting the construction of compound widgets, having had not</FONT>
<BR><FONT FACE="Courier New,Courier">> so much success a few months ago
when first starting widgets. I'll probably</FONT>
<BR><FONT FACE="Courier New,Courier">> be studying your program to hopefully
get some ideas, in particular, the use</FONT>
<BR><FONT FACE="Courier New,Courier">> of PRO_SET_VALUE and FUNC_GET_VALUE
which are not very well documented. (Nor</FONT>
<BR><FONT FACE="Courier New,Courier">> can I find their use anywhere on
DWF's web page :( Dave seems to prefer</FONT>
<BR><FONT FACE="Courier New,Courier">> using a NotifyID keyword to pass
events and change things.</FONT><FONT FACE="Courier New,Courier"></FONT>
<P><FONT FACE="Courier New,Courier">No, no, no. In fact, these days, ALL
of my compound widgets</FONT>
<BR><FONT FACE="Courier New,Courier">are written as objects. The purpose
of the FUNC_GET_VALUE</FONT>
<BR><FONT FACE="Courier New,Courier">for these objects is to return the
"self" object, which</FONT>
<BR><FONT FACE="Courier New,Courier">I can then control by means of methods.
This makes it</FONT>
<BR><FONT FACE="Courier New,Courier">incredibly easy to manipulate the
internal widgets of</FONT>
<BR><FONT FACE="Courier New,Courier">a compound widget.</FONT><FONT FACE="Courier New,Courier"></FONT>
<P><FONT FACE="Courier New,Courier">I've been meaning to write an example
of this, but most</FONT>
<BR><FONT FACE="Courier New,Courier">of my real programs are too complex
for instructional</FONT>
<BR><FONT FACE="Courier New,Courier">programs, and I haven't had the time
to write a simple,</FONT>
<BR><FONT FACE="Courier New,Courier">but meaningful, example. I promise
to do it, but I really</FONT>
<BR><FONT FACE="Courier New,Courier">can't say when. :-)</FONT><FONT FACE="Courier New,Courier"></FONT>
<P><FONT FACE="Courier New,Courier">Cheers,</FONT><FONT FACE="Courier New,Courier"></FONT>
<P><FONT FACE="Courier New,Courier">David</FONT></BLOCKQUOTE>
<FONT FACE="Courier New,Courier"> Hi,</FONT>
<BR><FONT FACE="Courier New,Courier"> 1) The students are back
so our network is *really* screwed(up)</FONT>
<BR><FONT FACE="Courier New,Courier"> so
double posts may result so apologies in advance.</FONT>
<BR><FONT FACE="Courier New,Courier"> 2) After watching
"South Park" last night I realized that I</FONT>
<BR><FONT FACE="Courier New,Courier"> should
have made the widget do both float and integer, I</FONT>
<BR><FONT FACE="Courier New,Courier"> guess
since SP is in Colorado and David lives in Colorado</FONT>
<BR><FONT FACE="Courier New,Courier"> I made
the connection ... :)</FONT>
<BR><FONT FACE="Courier New,Courier"> 3) The extremely thin
IDL volume on Objects & Graphics led me</FONT>
<BR><FONT FACE="Courier New,Courier"> to
believe that I would be spending far too much time learning</FONT>
<BR><FONT FACE="Courier New,Courier"> Object
Oriented Programming without a net and not getting any</FONT>
<BR><FONT FACE="Courier New,Courier"> work
done. David's statement about "programs are too complex"</FONT>
<BR><FONT FACE="Courier New,Courier"> seems
to justify my delay into OOP.</FONT>
<BR><FONT FACE="Courier New,Courier">Doug</FONT>
<PRE>--
Douglas J. Larson & ;nbsp; e-mail: djl@loki.srl.caltech.edu
Space Radiation Lab
California Institute of Technology
Mail Code: 220-47
Pasadena, CA 91125</PRE>
</HTML>
|
|
|