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

|
2007-10-23 14:20:36 |
|
Hi Mark,
I normally would not chime in, because I am so new to all of this.
But if you are desperate, and are willing to use a placeholder until
Dave presents an elegant solution, maybe you could still use the
wxStaticBitmap class. You could use an image editor, like GIMP or
Photoshop, scale the image to what you want, and load it with DB using
the wxStaticBitmap class. There may be other options using sizers,
depending on what you want to see.
HTH,
John
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools yahoogroups.com, "easton.mark" <mark63 ...>
wrote:
>
> Hi Dave!
>
> The tutorial would be brilliant. I am really enjoying learning
> DialogBlocks/wxWidgets. But, as always, I wish I was moving ahead
> faster! Even a few tips in the meantime would be great. 
>
> Hope the creek subsides!! Thanks Dave.
>
> Cheers,
> Mark
>
> >
> > Hi, Mark!
> >
> > I've got a new tutorial in the wings that deals with these things.
> It's an
> > MDI/wxImage/wxBitmap application. What's holding it up is getting
> the tutorial
> > documentation itself written. I'm right in the middle of switching
> systems and,
> > unfortunately, I ran into some hardware problems with the new one
> and I have to
> > ship it back for replacements and a new burn in.
> >
> > I'm going to try to hobble through on my old system and see if I
> cannot get the
> > tutorial completed. The code itself is all done, and so is the user
> manual,
> > there's just no step by step for how it is built using DB (the
> actual tutorial).
> >
> > Keep an eye out, it should be showing up soon (good Lord willing
> and the creek
> > don't rise! However, there's been a lot of creek rising (literally)
> in my neck
> > of the woods these past few days!;)
> >
> > thx,
> > Dave S.
>
__._,_.___
.
__,_._,___
|
| RE: Re: Image Control in DB? |

|
2007-10-23 15:21:36 |
|
Hi John,
Thanks for chiming in! 
Yeah, thats what I have ended up doing for now (resizing
the images) - it is a prototype demo that I am constructing right now - so the
odd temporary solution wont do any harm.
Sometimes with these things it is also a case of wanting to
know if I have missed somthing obvious. So it is good to know that what I am
doing is not outlandishly wrong. 
Many thanks,
Mark
Hi Mark, I normally would not chime in, because I am so new to all of
this. But if you are desperate, and are willing to use a placeholder
until Dave presents an elegant solution, maybe you could still use
the wxStaticBitmap class. You could use an image editor, like GIMP
or Photoshop, scale the image to what you want, and load it with DB
using the wxStaticBitmap class. There may be other options using
sizers, depending on what you want to see.
HTH, John
---
In anthemion-devtools%40yahoogroups.com">anthemion-devtools yahoogroups.com,
"easton.mark" <mark63 ...> wrote: > > Hi Dave! >
> The tutorial would be brilliant. I am really enjoying learning
> DialogBlocks/wxWidgets. But, as always, I wish I was moving
ahead > faster! Even a few tips in the meantime would be great.
 > > Hope the creek subsides!! Thanks Dave. > >
Cheers, > Mark > > > > > Hi, Mark! >
> > > I've got a new tutorial in the wings that deals with these
things. > It's an > > MDI/wxImage/wxBitmap application.
What's holding it up is getting > the tutorial > >
documentation itself written. I'm right in the middle of switching >
systems and, > > unfortunately, I ran into some hardware problems
with the new one > and I have to > > ship it back for
replacements and a new burn in. > > > > I'm going to try to
hobble through on my old system and see if I > cannot get the >
> tutorial completed. The code itself is all done, and so is the user
> manual, > > there's just no step by step for how it is
built using DB (the > actual tutorial). > > > > Keep
an eye out, it should be showing up soon (good Lord willing > and the
creek > > don't rise! However, there's been a lot of creek rising
(literally) > in my neck > > of the woods these past few
days!;) > > > > thx, > > Dave
S. >
__._,_.___
.
__,_._,___
|
| Re: Image Control in DB? |

|
2007-10-23 18:23:52 |
|
This is a very good idea, especially if there are discrete sizes
involved (not so great if you're looking to have the size change
dynamically)!
Also, just to add, if you don't want to burden your insatallation
with extra image files to be placed in obvious places for loading,
make the files XPM. DB will then include the image graphics data into
DB at compile time (.xpm files were "invented" with that purpose in
mind!;)
The Gimp is a great tool for this as it scales images quite nicely.
One caveat, however, be sure that any tool you use places a unique
name in the char array that describes the image data. I mention this
because Corel Paint Shop routinely calls the array "Pixmap". This is
okay if you're only loading one image, but the problem should be
obvious if you have several; i.e., redeclaration error in the build.
The Gimp does not suffer from this gross malady!;)
Also note that many tools don't address transparent background
(masks). The give away is that if there are no "None" values for
symbols in the array, and the image does indeed have a mask, then
that tool doesn't "understand" transparency. Another tell tale sign
is if, in the tool's viewer, what should be transparent is not. That
is these tools assign a (unused) color. Typically an off color
Fuchsia (purple magenta) is assigned. Other less obvious values show
the "transparent" background as [off]black or [off]white wbr><
HTH:
thx,
Dave S.
--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools yahoogroups.com, "john grant"
<johnkonradgrant ...> wrote:
>
> Hi Mark,
> I normally would not chime in, because I am so new to all of this.
> But if you are desperate, and are willing to use a placeholder until
> Dave presents an elegant solution, maybe you could still use the
> wxStaticBitmap class. You could use an image editor, like GIMP or
> Photoshop, scale the image to what you want, and load it with DB
using
> the wxStaticBitmap class. There may be other options using sizers,
> depending on what you want to see.
>
> HTH,
> John
>
>
> --- In anthemion-devtools%40yahoogroups.com">anthemion-devtools yahoogroups.com, "easton.mark" <mark63 >
> wrote:
> >
> > Hi Dave!
> >
> > The tutorial would be brilliant. I am really enjoying learning
> > DialogBlocks/wxWidgets. But, as always, I wish I was moving ahead
> > faster! Even a few tips in the meantime would be great. 
> >
> > Hope the creek subsides!! Thanks Dave.
> >
> > Cheers,
> > Mark
> >
> > >
> > > Hi, Mark!
> > >
> > > I've got a new tutorial in the wings that deals with these
things.
> > It's an
> > > MDI/wxImage/wxBitmap application. What's holding it up is
getting
> > the tutorial
> > > documentation itself written. I'm right in the middle of
switching
> > systems and,
> > > unfortunately, I ran into some hardware problems with the new
one
> > and I have to
> > > ship it back for replacements and a new burn in.
> > >
> > > I'm going to try to hobble through on my old system and see if
I
> > cannot get the
> > > tutorial completed. The code itself is all done, and so is the
user
> > manual,
> > > there's just no step by step for how it is built using DB (the
> > actual tutorial).
> > >
> > > Keep an eye out, it should be showing up soon (good Lord
willing
> > and the creek
> > > don't rise! However, there's been a lot of creek rising
(literally)
> > in my neck
> > > of the woods these past few days!;)
> > >
> > > thx,
> > > Dave S.
> >
>
__._,_.___
.
__,_._,___
|
[1-3]
|
|