Frank Hileman's WebLog

Vector Graphics with VG.net and Visual Studio Integration

Preview of 3D Knob Controls in VG.net

Blue knob controls in VG.net

Here is a preview of some 3D knob “Controls” using VG.net vector graphics. They are not true Controls -- they are VG.net Pictures, which are lighter weight and more flexible than Controls. They can be reused as Sub Pictures in other Pictures, or they can easily be placed in a windows forms Control and reused in that fashion.

Because the colors are all controlled by Styles, you can change a single Style and modify the overall color in one operation:

Red knob controls in VG.net

For user interaction, these knobs make use of a new VG.net function on each Element, CaptureMouse. In this way, you can capture mouse events the same way you would capture them for a windows forms slider control. This function is in the new VG.net release, scheduled to be out this week. The knob controls will be released a little later.

Published Wednesday, July 14, 2004 9:07 AM by Frank Hileman

Comments

# re: Preview of 3D Knob Controls in VG.net@ Wednesday, July 21, 2004 3:10 AM

Hi
Looks nice. I hope you have also buttons in knob controls (needed in myxml minibrowser). I have tried to develop these buttons with vgnet but it is difficult to build good looking buttons. I am waiting enthuastic to see these knob controls.

by Harri

# re: Preview of 3D Knob Controls in VG.net@ Wednesday, July 21, 2004 3:21 AM

There are some buttons in the new web demo (on this blog in a couple days). These things will be easier with the path gradient.

What kind of buttons did you want?