| Re: CASE a UNAME?? [message #27483 is a reply to message #27482] |
Wed, 24 October 2001 21:19   |
Logan Lindquist
Messages: 50 Registered: October 2001
|
Member |
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Umm, nevermind. I found it. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is from the IDL Help.. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>IDL GUIBuilder
Examples</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>...........</FONT></DIV>
<DIV><FONT face=Arial size=2>Note that the callback routine finds the label
widget using the FIND_BY_UNAME keyword with the name value you gave the widget
in the Properties dialog.</FONT></DIV>
<DIV><FONT face=Arial size=2>...........</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>; Toggle the mapping of the two IDL sub-bases
and</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>; get the Widget IDs of the two
sub-bases.<BR> wBase1 = Widget_Info(Event.top,
find_by_uname="base1")<BR> wBase2 = Widget_Info(Event.top,
find_by_uname="base2")<BR> <BR> ; Now update the
mapping.<BR> widget_control, wBase1, map=(Event.index eq
0)<BR> widget_control, wBase2, map=(Event.index eq 1)</FONT></DIV>
<DIV><FONT face=Arial size=2>...........</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is an example from Pavel Bure [just kidding I
don't think he's really the hockey player from the Florida Panthers... this last
name is much easier for me to remember .. and spell than Pavel's real last
name]. Pavel added it to the procedure that the Widget_Draw object calls, so
that's what I'm going to do.</FONT></DIV>
<DIV><FONT face=Arial size=2>......</FONT></DIV>
<DIV><FONT face=Arial size=2>widget_control, widget_info(event.top,
find_by_uname='THE_DRAW'), get_value=win_id</FONT></DIV>
<DIV><FONT face=Arial size=2>......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gosh I love it when I answer my own questions. Well
not out loud..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks Pavel,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Logan</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Logan Lindquist" <<A
href="mailto:llindqusit@mrdoc.cc">llindqusit@mrdoc.cc</A>> wrote in message
<A
href="news:9r81fm$jio$1@sulawesi-fi.lerc.nasa.gov">news:9r81fm$jio$1@sulawesi-fi.lerc.nasa.gov</A>...</DIV></BLOCKQUOTE></BODY></HTML>
|
|
|
|