Graphics in VB6
I want to draw more complex figures and change the colour of them in VB. It is easy to draw a circle and change the properties but how do I manage more complex graphics.
# 2 Re: Graphics in VB6
I want to build a symbol of for example a motor. This symbol should be devided into seperate parts that can change colour according to the motor status. I have made a test symbol by using the built in box, and circles in VB but I don't want to be limited to these simple figures. How do I for example draw a triangle. Is there any tool that I can use to draw more like freehand shapes or somethin like that?
Thanks for your reply,
Mikael
# 4 Re: Graphics in VB6
Ok, thats one way of doing it that i did't think of. But I still have a problem beacause sometimes I want parts of the figure to blink. Also, it will be a lot of different states since I have aprox 5 different parts in the figure that can have three different colours each. Thats why I want to draw the figure with VB objects that I can change properties for individually.
Thanks for your answer,
Mikael
# 5 Re: Graphics in VB6
One way might be to start with a picture, then use ExtFloodFill API to change the color of a particular portion. This will work on solid colors (not gradients). For blinking, that might be best done with an animated gif, otherwise you'd have to use a timer to continuously toggle the color. That's not so bad really, but you can also use a control for an animated gif such as the free GIF89.dll.