Where can I read about "dx rendering" (ie: what it is ... how to code with it... etc)?
Unless I could utilize dx rendering on top of my VB6.0 application, then it is too late for me to switch from using VB6.0 as the programming language since I do not want to rewrite all the logic behind it.
Does anyone know of a good VB6.0 OCX which offers an Image Control as a button and has the features Youki mentions?
Howard
What do you mean "flickering" when using an image control? Do you mean when the Image control is resized then flickering occurs during the repaint cycle or perhaps you mean loading a new image into the Image control causes some flickering so if I had many Image controls as buttons then it would be very noticible?
I would need to use Image controls since PictureBox controls do not automatically resize the image within the control when the control is resized I believe.
Yes, dx is just a rendering application. You can use up to dx8 in vb. Search for directx4vb in google. (Site addy recently changed)
I'm sure there are tons of ocx's that do what youki is saying but I really don't see the point.
Here's what you do.... for an individual image's mouseover event, you swap the image. For the form's mouseover event (meaning you aren't over the image anymore) you loop through all the image controls, changing them all back to default. It'll give you the same functionality basically. You can also setup a function to reset all the images but the current one when you do a mouseover and that'll be more foolproof (in those rare cases when you move from one button to another without ever moving over empty form.) I know that sounds complicated, but even a ready made ocx is going to have the exact same issues and thus you are going to have to do this bit of code anyway. Thus why I don't see the point.
Flickering occurs when a lot of things happen.
It occurs when:
An image control is resized.
An image control is moved across the screen.
One image control overlaps another and the images in them are changed regularly.
The background or anything behind them gets a new image.
Now picture boxes don't flicker when you move them around, but I don't know how useful that is as they don't have a transparent back.
Basically if your app will esssentially be static with the exception of an image swap at mouseover events you are good. If you'll be moving things around (animations ect) then it'll flicker too badly to be useable.
hope that helps