![]() ![]() 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |