Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 13 MAY 2003 11:32:03AM Colin Rule wrote:

I want to be able to display an image in its exact resolution, ie clipped and not resized, but with horizontal and vertical scrollbars to be able to see it all.

At present you can have resized (ie corrupted image) or clipped (cannot see it all).

Is there any way of doing this?

Colin


At 13 MAY 2003 12:07PM Don Miller - C3 Inc. wrote:

I don't think so using the tools provided in OI. Of course, you might be able to do it programably using an external viewer / editor (Ifranview, or somesuch), by making a button control that would call the external process. You could then use a "thumbnail" view on your form that would take you to what you would want.

Don M.


At 13 MAY 2003 04:03PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Colin,

How about a clipped BITMAP control with vertical and horizontal scrollbar controls? You can get the image dimensions and then use the scroll bars to alter the bitmap's IMAGEOFFSET property.

The Sprezzatura Group

World leaders in all things RevSoft


At 14 MAY 2003 02:43AM Richard Bright wrote:

What about using Oi's ocx control - even with the browser (About:blank) and send it the bitmap?


At 14 MAY 2003 05:10AM Colin Rule wrote:

AHa, did I read the manual…?

NO!!!

Thanks, I will try this.


At 14 MAY 2003 05:35AM Oystein Reigem wrote:

Richard,

That browser OCX sure is useful. I think I might start making OI windows with a single wall-to-wall browser OCX control and do the rest in Java. Hahaha. But to be serious - I might use a browser OCX as a replacement for my ill-fated RTF OCX.

And still serious - using a browser OCX for displaying images opens for some interesting possibilities. The image can be displayed with an accompanying text, several images (thumbnails) can be shown at once, etc.

Colin - in case you want to try Richard's idea of using a browser OCX for your images - here are the two ways I have used to put content into the browser:

URL=local file

declare function Send_Message

URL =file:C:\winR\Bilder\Biarritz.bmp" Stat=Send_Message( @Window : ".OLE", "Navigate", URL ) In this example the local file is a bmp file, but it could equally well be a jpg or html file. Javascript writes content declare function Send_Message URL =javascript:document.write("blah blah blah")' Stat=Send_Message( @Window : ".OLE", "Navigate", URL ) Unfortunately I haven't got the latter method to work with images. Obviously one must include an image tag somefile[/i] in the text to be written, which necessitates some careful juggling with single and double quotes: * URL is the string * javascript:document.write('somefile[/i]') URL =javascript:document.write('" URL := 'somefile[/i]' URL := "')" But my problem isn't the quotes but the syntax for somefile. Btw - here's how I blank out the window, by using the first method with a blank html file: declare function Send_Message URL =Drive() : "\html\blank.htm" Stat=Send_Message( @Window : ".OLE", "Navigate", URL ) (I use the blank html file that comes with OI.) - Oystein - </QUOTE> View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/257939ee9b8d0aa285256d250055554c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1