1. Graphics in a Window

If I wanted to show simple graphics using a Win32Lib program, what control
would I use to display those graphics? I'm building the Window with the IDE,
so should I use the bitmap control?

Thanks!
ck

new topic     » topic index » view message » categorize

2. Re: Graphics in a Window

----- Original Message -----
From: "C. K. Lester" <cklester at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: Graphics in a Window


>
>
> If I wanted to show simple graphics using a Win32Lib program, what control
> would I use to display those graphics? I'm building the Window with the
IDE,
> so should I use the bitmap control?
>

That is the easiest way to do it. Especially if the image is a .BMP and
doesn't change its size.

--
Derek

new topic     » goto parent     » topic index » view message » categorize

3. Re: Graphics in a Window

> > If I wanted to show simple graphics using a Win32Lib program, what
control
> > would I use to display those graphics? I'm building the Window with the
> IDE,
> > so should I use the bitmap control?
>
> That is the easiest way to do it. Especially if the image is a .BMP and
> doesn't change its size.

I did a terrible job explaining what I want... let me try again...

I'm basically looking to create a window where animated graphics will be.
Let's say I was creating a program that plotted in a section of the window a
"+" sign that follows mouse movement. Obviously I wouldn't use a BMP
control, unless it's okay to write to the bitmap and display it again...
what would be best for this situation? :)

Thanks guys 'n' gals!

-ck

new topic     » goto parent     » topic index » view message » categorize

4. Re: Graphics in a Window

----- Original Message -----
From: "C. K. Lester" <cklester at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Graphics in a Window


>
>
> > > If I wanted to show simple graphics using a Win32Lib program, what
> control
> > > would I use to display those graphics? I'm building the Window with
the
> > IDE,
> > > so should I use the bitmap control?
> >
> > That is the easiest way to do it. Especially if the image is a .BMP and
> > doesn't change its size.
>
> I did a terrible job explaining what I want... let me try again...
>
> I'm basically looking to create a window where animated graphics will be.
> Let's say I was creating a program that plotted in a section of the window
a
> "+" sign that follows mouse movement. Obviously I wouldn't use a BMP
> control, unless it's okay to write to the bitmap and display it again...
> what would be best for this situation? :)

Ahhh, animation!

Then use a Pixmap and BitBlt it into the window on each Paint event.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Graphics in a Window

> Ahhh, animation!
>
> Then use a Pixmap and BitBlt it into the window on each Paint event.

I'm thinking of using OpenGL... Is this how the OpenGL projects do it, by
plotting to a pixmap?

I notice the IDE has no provision for a pixmap... I guess I would just
configure a bitmap control and then do a switcheroo? :)

new topic     » goto parent     » topic index » view message » categorize

6. Re: Graphics in a Window

----- Original Message -----
From: "C. K. Lester" <cklester at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: Graphics in a Window


>
>
> > Ahhh, animation!
> >
> > Then use a Pixmap and BitBlt it into the window on each Paint event.
>
> I'm thinking of using OpenGL... Is this how the OpenGL projects do it, by
> plotting to a pixmap?
>
> I notice the IDE has no provision for a pixmap... I guess I would just
> configure a bitmap control and then do a switcheroo? :)
>

OpenGL would be extreme overkill for what you are planning. It is doing it
the HARD HARD HARD way.

Can't help with the IDE issue.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Graphics in a Window

Actually IDE does support Pixmap. You can drop Bitmap onto Design and then
change the Bitmap class to Pixmap. You can also indicate negative X value to
move it offscreen.

Please let me know what else Pixmap control needs and I will be happy to
explore a solution.
--judith


 >>Ahhh, animation!

>>Then use a Pixmap and BitBlt it into the window on each Paint event.

>I'm thinking of using OpenGL... Is this how the OpenGL projects do it, by
>plotting to a pixmap?

>I notice the IDE has no provision for a pixmap... I guess I would just
>configure a bitmap control and then do a switcheroo? :)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu