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

Home » Public Forums » archive » compund widget question
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
compund widget question [message #45257] Fri, 26 August 2005 02:03 Go to next message
rlayberry is currently offline  rlayberry
Messages: 33
Registered: November 2004
Member
Hi All

Does anybody have any code or know where I can get a compound widget
which, on selecting a file, will open it up in an editable spreadsheet
which can then be saved?

Thanks

russ
Re: compund widget question [message #45342 is a reply to message #45257] Fri, 26 August 2005 15:27 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
David wrote:

> 2) If you're on Windows, you could embed an ActiveX control in your
> widget app. for a standard excel-like spreadsheet. There's an example
> of this in the examples directory:
>
> C:\RSI\IDL62\examples\doc\bridges\COM\ActiveXExcel.pro
>
> You'd have to manage saving to a file yourself, though.


You can definitely save programmatically in IDL with the Excel COM
object, you'll just have to track down the appropriate method in the
appropriate interface and that object is pretty complex. You can use
the OLE/COM viewer to explore the objects interfaces and methods.

-Rick
Re: compund widget question [message #45343 is a reply to message #45257] Fri, 26 August 2005 15:02 Go to previous message
David is currently offline  David
Messages: 24
Registered: April 1997
Junior Member
Here are two possibilities:

1) Use SPAWN to start up an external spreadsheet app. On Windows this
might look something like:

SPAWN,'start excel "'+ filename +'"' ,/HIDE

(where 'filename' is the value returned from a call to
DIALOG_PICKFILE), on unix it would look the same but without 'start' in
your command argument string, and without the HIDE keyword, and
obviously replacing 'excel' with the full path of the spreadsheet app
you want to open.

2) If you're on Windows, you could embed an ActiveX control in your
widget app. for a standard excel-like spreadsheet. There's an example
of this in the examples directory:

C:\RSI\IDL62\examples\doc\bridges\COM\ActiveXExcel.pro

You'd have to manage saving to a file yourself, though.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mac Program Support
Next Topic: Optimizing IDL on a Beowulf Cluster

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

Current Time: Wed Oct 08 17:25:04 PDT 2025

Total time taken to generate the page: 0.00508 seconds