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

Home » Public Forums » archive » Re: cgArrow Solid keyword with a cgWindow
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: cgArrow Solid keyword with a cgWindow [message #83929 is a reply to message #83928] Thu, 18 April 2013 07:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>> I've found that calling cgArrow with the /SOLID and /AddCmd keyword
doesn't work in adding a (solid) arrow to a resizable window. I think
this is because the call to cgColorFill in cgArrow (lines 233 and 234)
does not allow the parameter to be passed. I tried to fix it by adding
'_Extra=extra' to the cgColorFill call, but that also doesn't work
because /AddCmd is not allowed in the call to cgColorFill.
>
> Well, something is screwy, for sure. The solid arrowhead is being drawn,
> but not in the right window.
>
> I do notice that this works correctly, if you use the WINDOW keyword, as
> the documentation specifies, rather than the ADDCMD keyword, which is
> not defined for this routine. :-)
>
> I presume this has something to do with the ADDCMD keyword being passed
> along with _EXTRA. It looks to me like Coyote wrote this routine. I'll
> see if I can get it sorted out.

The simplest solution seemed to be to just define an ADDCMD keyword to
this routine to make the interface more consistent with the rest of the
Coyote Graphics library. You can find the updated routine here:

http://www.idlcoyote.com/programs/cgarrow.pro

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to Zip cross-platform from IDL?
Next Topic: Re: issue with CMSAVE

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

Current Time: Fri Oct 10 22:42:15 PDT 2025

Total time taken to generate the page: 0.23613 seconds