----- Original Message ----- From: "chm" <[email protected]>
To: "Sisyphus" <[email protected]>
Cc: <[email protected]>; <[email protected]>
Sent: Monday, January 16, 2012 2:40 PM
Subject: Re: [Perldl] Close Dialog On /GW Device PGPLOT


On 1/15/2012 8:30 PM, Sisyphus wrote:
...snip...

But I don't know what the (missing) code would look like. It probably
just re-invents what PDL::Graphics::PGPLOT does, anyway.

I'll see if I can come up with something.

You know that you can drag that pop-up wherever you want ? (It's still
annoying, though.)

Maybe we could try contacting the author of the
grwin driver to see if he has a suggestion.

If he's still alive ... it has been around for a while and, no doubt, modified by a number of individuals over the years ;-)

There's so much kludginess and arcananess surrounding grwnd.exe that it's hard to know where to start.

Crappy Situation 1
A perl script cannot open a 2nd instance of grwnd.exe, even if the first grwnd.exe has been closed. (I don't know if this extends across to C programs.)

Crappy Situation 2
The x86 grwnd.exe (that I've distributed with the PGPLOT ppm package) produces a pop-up that gives you no other option than to close the grwnd.exe window. The x64 grwnd.exe produces a pop-up that gives you a second option - namely to keep the graphics window open (for re-use) and continue on. Given the existence of Crappy Situation 1, it's probably crucial that this second option (provided by the X64 pop-up) exists.

Crappy Situation 3
There's an END{} block in PDL/Graphics/PGPLOT.pm that wants to clean up the existing grwnd.exe window. Firstly, it throws up the pop-up wanting to know whether to close the grwnd.exe window. That's probably fair enough - you might want to exit the script but keep the graphics window open so you can have a good look at it at your leisure. With x64, at least, you have the option of doing just that, but again you're confronted with Crappy Situation 2 if you're using x86.

Crappy Situation 4
I thought it might be interesting to see what happens if that END{} block was commented out - expecting that the script would exit and the grwnd.exe window would remain open. Not so - the END{} block aparently serves no purpose on Windows. The clean-up procedure still throws up the very same pop-up box that would have been thrown up if the END{} block had *not* been removed.

OTOH, pgplot seems pretty good when it comes to writing to files. No pop-ups to bother about !!

I think I should be able to find (and then distribute) an x86 grwnd.exe that throws up the same pop-up as the x64 version does. That will at least reduce some of the crappiness.

Cheers,
Rob


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to