1. Graphics in a Window
- Posted by "C. K. Lester" <cklester at yahoo.com> Jun 02, 2003
- 393 views
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
2. Re: Graphics in a Window
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 02, 2003
- 394 views
----- 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
3. Re: Graphics in a Window
- Posted by "C. K. Lester" <cklester at yahoo.com> Jun 02, 2003
- 388 views
> > 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
4. Re: Graphics in a Window
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 02, 2003
- 377 views
----- 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.
5. Re: Graphics in a Window
- Posted by "C. K. Lester" <cklester at yahoo.com> Jun 02, 2003
- 376 views
> 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? :)
6. Re: Graphics in a Window
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 02, 2003
- 390 views
----- 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.
7. Re: Graphics in a Window
- Posted by Judith Evans <camping at txcyber.com> Jun 03, 2003
- 386 views
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? :)