The way I was thinking of doing it, was to have some other code
generate the .html file dynamically (which I have not done yet), then
the wxHtmlWindow displays it. The WIDTH and HEIGHT specifications for
each image need to be in the <IMG .....> tag in the .html file. They
can't be passed as a parameter to the html window (AFAIK). I have not
tried all of this yet, but as far as I can tell, you can capture mouse
events over the html window and find out what image etc. the user
clicked on. See wxHtmlCell
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com, "Mark Easton" <mark63
...>
wrote:
>
> Thats a brilliant idea. I must say that I had actually thought of it
but had
> not pursued it because the image file name would need to be inserted
> dynamically. Actually it could be past as a parameter. Since you
have worked
> out how to do most of this - I had better go to it. 
>
> Many thanks!
> Mark
>
>
>
> _____
>
> From: anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com
> [mailto: anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com] On Behalf Of super8geek
> Sent: Wednesday, 24 October 2007 9:28 a.m.
> To: anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com
> Subject: [anthemion-devtools] Re: Image Control in DB?
>
>
>
> I don't know if this helps, but I have embedded images in windows
> using wxHtmlWindow. Once you have created a wxHtmlWindow object called
> "html" for example, you can html->LoadPage("file.htm") and the html
> file can contain tags to link in image files such as .jpg. The tags
> can include resizing to what you want in pixels using WIDTH="***"
> Height="***". This would also automatically allow scrolling if there
> were many images.
>
> --- In anthemion-devtools
<mailto:anthemion-devtools%40yahoogroups.com>
> yahoogroups.com, "easton.mark" <mark63
>
> wrote:
> >
> > Ummmm - this is probably a dumb question, but it should be easy in DB
> > and I cant find the easy way. How do I display an image? I want to
> > display images, reduced in size to 180 x 180. I want to use a
wxSlider
> > to move through the images. The images will all sit in a sub
folder. Do
> > I have to code the image control or is there some control
available in
> > DB?
> >
> > The StaticBitmap does not seem to be intended for this use. The
> > wxWidgets manual says "A static bitmap control displays a bitmap.
It is
> > meant for display of the small icons in the dialog boxes and is not
> > meant to be a general purpose image display control. In particular,
> > under Windows 9x the size of bitmap is limited to 64*64 pixels and
thus
> > you should use your own control if you want to display larger images
> > portably."
> >
> > Cheers,
> > Mark
> >
>
.