Since I’ve been quite busy lately and haven’t done much with my VizToolkit library, I decided to spend some time this weekend polishing it. I made few changes to existing controls and added two new ones, which, I hope, you’ll find usefull.
What’s new
I made some minor changes to the controls themselves. I’ve reorganized the way they render on form. VizConnectionButton now has VisualSettings property which allows you to customize how it looks like. VisualSettings property can be used to override default settings, so only if you want to change controls appearance should it be serialized.
Another thing worth mentioning is VizToolkit library now consists of four controls.
First of all I’ve added VizActionButton control. Basically it’s an ordinary button, but it comes with consistent look of VizConnectionButton control. As those controls have same control renderer, you are now able to create navigation panels like this one:
VizActionButton also comes with predefined icons. To change it – simply select proper value from ActionType property.
Last change is a VizManager component. It still needs a lot of work but I decided to add it to the control library for testing purposes. Right now it implements only Scene loading, placing in renderer, and Stage manipulation mechanisms. In future I’ll try to make it linkable with VizActionButton control, so basic navigation will not require any code. Please try it and tell me if it works ok. All suggestions are very appreciated.
I placed new version in Download section, but left previous version avaible also. Feel free to use it. I’m waiting for your feedback.
GHTime Code(s): 316bb



HI Hormon,You are great dude!.
its working, try to make it linkable with VizActionButton control.any update u made ple let me know.
i hope it will be helpful.
Hey,
I’ve just come across this and started playing. Its very impressive. I have one issue however that you may be able to help with.
1. I have an event setup for OnVizResponse like your example code.
If I add a number of commands to the buffer to send to viz and then send them all at once, the OnVizResponse will only get the first commands response from viz and never fire again for subsequent responses. Its like the response buffer is wiped clean after the event is fired, but is actually still being filled after the first fire?
Hi Gavry,
Could you tell me how exactly you fill the buffer with commands? To get responses from viz, if you use AddToBuffer command you should use the overriden method with requireResponse parameter set to true. This way it should work fine. The buffer whole buffer is sent as a single viz request (at once). Please check this out and let me know if it’s still doesn’t work. I’ll look into it and try to make it work. There’s a new release of controls comming out in few days time so I’ll try to correct this till then. Thank you for your feedback.
[update]
You are right Gavry. I’ve just checked it. There’s a bug in vizConnection control. I’ll try to correct it as soon as possible.
[update 2]
Funny thing is I don’t get all the responses from viz when I send them without any delays. The problem could be I have to do some processing after I receive a message and before I trigger the event, but unfortunatelly this cannot be changed. The solution for now is to send messages sequentially – one after another (the next message is sent when the answer for previous message arrives). I created a method for that purpose in VizConnection component. It will be included in next release (in few days time). I’ll still try to find other solution, but this one should work fine. This are the unwanted limitations of asynchronous connection handling :-). Regards and thank you for your feedback.
Thanks for the quick reply. My code is as follows:
Code to send commands to Viz:
remoteVizConnection.ClearBuffer();
remoteVizConnection.AddToBuffer(“1 RENDERER SET_OBJECT SCENE*01_ticker”, true);
remoteVizConnection.AddToBuffer(“2 RENDERER*STAGE SHOW 0.0″, true);
remoteVizConnection.AddToBuffer(“20 RENDERER*STAGE*DIRECTOR*Default START”, true);
remoteVizConnection.SendBuffer();
OnVizResponse
private void remoteVizConnection_OnVizResponse(object sender, VizConnectionEventArgs e) {
// when response from viz arrives put it in log
this.Invoke(new UpdateLogCallback(UpdateLog), e.VizResponse);
}
UpdateLog
public void UpdateLog(String message) {
txtVizLog.Text += message;
txtVizLog.Text += Environment.NewLine;
}
What Appears in txtVizLog after the OnVizResponse fires:
1
That’s its. Responses for the 2 and 20 commands are never returned.
Check out my website in few days (around wednesday most likely). There’ll be next release of my controls.
What you’ll be able to do is:
vizConnection1.ClearBuffer();
vizConnection1.AddToBuffer(command1, true);
vizConnection1.AddToBuffer(command2, true);
vizConnection1.AddToBuffer(command3, true);
vizConnection1.AddToBuffer(command4, true);
vizConnection1.SendBufferSequentially(); // <– this will do all the work with sending one command after another
Hope it’ll work for you. This is the best quick solution I can think of for the moment.
Some further feedback for you. This time in relation to the action button.
In relation to setting properties of the button in the form designer font settings and on pressed visual settings don’t seem to flow through to the compiled app. Whatever you set for those the default is always used.
:-) Thanks again. I’ll fix it today and hopefully if there’s no more bugs (at least the ones I know about) I’ll make a build. I very appreciate your feedback. Cheers.
hi i extracted the FPS.VizToolkit and referenced it in my vizual studio project.
but when i compile i get error
Warning 1 The referenced assembly “FPS.VizToolkit” could not be resolved because it has a dependency on “System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project. viztoolkit_test
and
Error 22 The name ‘FPS’ does not exist in the current context F:\SATISH K RR\VIZ\viztoolkit_test\viztoolkit_test\Form1.Designer.cs 149 48 viztoolkit_test
nay help pls