![]() I’m not going to detail how I programmed the remainder of the touchpanel layout in this post, but if you grab the final code from my GitHub repository, you should be able to follow it easily. So, we just have to make sure that the Menu List is always assigned ID 1 in VT-Pro. Sounds like you may need to restore the panel to default and reupload the program. I wish there were a way to refer to Smart Objects by name instead of ID, but it seems like that isn’t saved anywhere. You can see that writing handlers for Smart Objects is quite a bit easier since there are a limited number of signals that can trigger them. Those would all be handled by adding a SigChangeEventHandler to _tp. ![]() Everything else in the XPanel layout is a traditional button, slider, or gauge. ConclusionĪnd there you have it: the 3 Smart Objects are now programmed. The 20ms delay is there to keep the simulated ramping realistic to an actual camera. And I moved the range checking into the loop rather than the while statement since the way it worked it was always evaluating true anyway. Since I had to break apart left/right and up/down, I decided I might as well break out of the loop if I hit a limit. ![]() Unfortunately, if I hit the limits, the value would get stuck. I originally wrote this much simpler where I just looped around checking that the value stayed within range and added the direction on each pass. ![]() If (result != eDeviceRegistrationUnRegistrationResponse.Success)ĮrrorLog.Warn("Problem registering XPanel: ", _pan, _tilt) _tp = new XpanelForSmartGraphics(0x03, this) ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |