I’ve made some updates to my VizToolkit Controls Library. Mostly I focused on fixing bugs and implementing new features to existing controls that in my opinion were missing. Like before new version of VizToolkit dll is avaible for download along with documentation. Let’s take a quick look on what has changed since last release.

What’s new

I’ll start with the most relevant update I made which is related to VizActionButton and VizManager. In previous release you weren’t able to link those two controls so they could work together. Now you can :-). To to this simly choose your VizManager control from dropdown list in VizActionButton’s Manager property.

VizActionButton can now be linked to VizManager

VizActionButton can now be linked to VizManager

Let me tell you how it works. When you click VizActionButton it invokes method in VizManager corresponding to selected ActionType. You could of course do this manually by handling Click event, but why bother when it could be done for us. Below you can see the list of ActionTypes and corresponding VizManager methods:

  • Load – VizManager.PutInRenderer()
  • Start – VizManager.SceneStart()
  • Continue – VizManager.SceneContinue()
  • Back – VizManager.SceneContinue(true)
  • Stop – VizManager.SceneStop()
  • Clear – VizManager.RendererClear()
  • OnAir – VizManager.SwitchToOnAir()

I’ve also rewritten almost all methods in VizManager component. To ensure naming pattern is consistent I had to get rid of LoadScene() method and replaced it with SceneLoad(). I added a number of methods to manage scenes, but also renderer. If you want to know more, plase check out the documentation.

Recently I was writing a small application to manage both 2.8 and 3.2 viz|engines. It was meant to send viz commands to 2.8, and change shared memory variables in 3.2. I had to determine what is the version of viz|engine I’m connecting to. I felt the lack of a simple parameter in VizConnection component which would tell me what I want to know. Thus I decided to implement it. From now on VizConnection has a parameter called VizVersion. The object is of type VizEngineVersion and consists of following parameters:

  • Version – (String) contains full version string aquired from viz|engine
  • Major – (String) contains major version number (i.e. 2.8 or 3.2)
  • Minor – (String) contains minor version number (i.e. pl5 or 2)
  • Build – (String) contains build number (i.e. hf3 or 5559)

VizConnection component has now additional method called SendBufferSequentially. This method is a quick solution for a bug pointed out by Gavry. In certain conditions when command buffer was populated with several commands and we wanted to get response to each of them, sending buffer with SendBuffer method resulted in OnVizResponse event firing for first command only. The solution for this is SendBufferSequentially method. What it does is it sends command from command buffer, waits for viz response, and then moves to next command. And so on. If you have more questions about this matter, please don’t hasitate to ask. I’ll do my best answering them.

This release of VizToolkit Controls Library includes also quite a number of minor bug fixes. Most of them were related to visual side of controls.

And a cherry on top… :-)

I use VizToolkit Controls Library in my every-day development and recently I needed new themes for VizActionButtons. They are called Black and Gray. You can have a quick look how they appear on the form.

New themes for VizActionButton and VizConnectionButton

New themes for VizActionButton and VizConnectionButton

And that’s basically it. Feel free to download VizToolkit Controls Library from Download section. If you have any requests on future controls or questions about existing ones please feel free to post a comment below this article or send me message via our Contact Form. Have fun.

GHTime Code(s): 8c64e