Displaying JPG images
Fairlight
fairlite at fairlite.com
Thu Mar 31 11:24:35 PST 2005
Only Kenneth Brody would say something like:
>
> Use the START command:
>
> system "start c:\rcprison\filepro\ndc\5852104520.jpg"
>
> (You can also "start iexplore.exe ..." to force IE to display the image
> if you want. However, by using only the filename, Windows will use
> whatever program you or the user has configured to display images, and
> not force the user to use IE.)
I -highly- recommend using start iexplore.exe whenever dealing with
IE--especially on Win2K/IE6 and above. I have a program that, during
development, made use of starting HTML files simply by extension, and the
calling program believed the fork() had never actually succeeded. I
started saying iexplore, and it stopped malfunctioning. I could have
generalised it to grab the registered browser but I really didn't give too
much of a damn about that. :)
Now...as to the suggestion itself, I think it has problems in that, without
use of JavaScript or ActiveX, you'll always get the IE window at the
position and size of the last closed instantiation, with full toolbars,
etc. And IE in and of itself as an image viewer is bloated overkill to
the Nth degree. It's far more tempting to just bang out a quickie Tk app
that will display the image in the minimum possible dimensioned window at
user-definable top-left start coordinates. That should take all of about
20min, if I wanted to pursue it. There are plenty of image viewers out
there, but if -all- you want to do is view, you can make something a lot
lighter with no menus, buttons, etc. It simply displays and can be closed.
No editing, etc., etc.
But bloat aside, the aesthetics and positioning of IE are less than
stellar unless you have extra controls in there to--well, control it.
mark->
--
***** Fairlight Consulting's Software Solutions *****
OneGate Universal CGI Gateway: http://onegate.fairlite.com/
FairPay PayPal Integration Kit: http://fairpay.fairlite.com/
RawQuery B2B HTTP[S] Client & CGI Debugger: http://rawquery.fairlite.com/
Lightmail Mail Sending Agent: http://lightmail.fairlite.com/
More information about the Filepro-list
mailing list