|
List Info
Thread: Image Control in DB?
|
|
| Image Control in DB? |

|
2007-10-23 00:02:17 |
|
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
__._,_.___
.
__,_._,___
|
| Re: Image Control in DB? |

|
2007-10-23 00:22:28 |
|
Further to this, if I am in fact supposed to use wxStaticBitmap, then I
have the following issues.
1. I cant set it to say a specified size (say 150x150). Everytime I do
something (such as SetBitmap()) it resizes to the size of the image -
it will not stay the size I have set.
2. When I set it to an image in the images folder resource and then
build the application and run it - it cannot find the image. So I have
to copy the image to the app folder. It does not matter if when I point
at the image I use "Link to" or "Copy". This is not a big deal - but it
just seems that this is not working in DB??
Many thanks,
Mark
__._,_.___
.
__,_._,___
|
| Re: Image Control in DB? |

|
2007-10-23 15:28:20 |
|
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%40yahoogroups.com">anthemion-devtools 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
>
__._,_.___
.
__,_._,___
|
| RE: Re: Image Control in DB? |
  New Zealand |
2007-10-23 15:57:08 |
|
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
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%40yahoogroups.com">anthemion-devtools 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 >
__._,_.___
.
__,_._,___
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|