Hey @m.prestel, any documentation on those global variables like ptMouse?
No one know if this is possible?
Hey I want to access the Modbus slave diagnostic information, like in the ModbusTCPSlaveParameters dialog. Example of request counter and error counter.
Hey I want to access the Modbus slave diagnostic information, like in the ModbusTCPSlaveParameters dialog. Example of request counter and error counter.
Hey I want to access the Modbus slave diagnostic information, like in the ModbusTCPSlaveParameters dialog. Example of request counter and error counter.
Hey I want to access the Modbus slave diagnostic information, like in the ModbusTCPSlaveParameters dialog. Example of request counter and error counter.
But then for each visualization and instance/client, some objects and variables are available. There is no auto complete for those variables, how shall we know they exits? Before i was trying to access the mouse position via the interface for mouse event and then create a global variable array with a index for each client id. But if we have the ptMouse directly on the visu, then we dont event need that extra mouse event handling. Where is the documentation for those variables/pointers?
Hey Thanks Prestel. Knowing the mouse position relative to the screen already helps and allows me to program a function to be called before opening the dialog. So there is a reference pointer for the mouse position for each visualization, like there is the pClientData pointer. What other pointers exist? Where is this documentation?
Hello, I have been investigation how to implement a open dialog at specific position in screen, depending on the clicked element size and position. Is there a way to grab the position and size of the element we click on, then pass this into a function to calculate where to open the pop up?
Hello, I have been investigation how to implement a open dialog at specific position in screen, depending on the clicked element size and position. Is there a way to grab the position and size of the element we click on, then pass this into a function to calculate where to open the pop up?
Yes, it makes sense, but then i will need to use getclientid to grab the correct mouse location. Is there other way to get the mouse position directly from the visu, so i can open a dialog at a specific position? Also is there a way to read the graphic element position, in conjunction the mouse position to display the dialog at a position relative to the element? Example: click on a button and show a dialog on the left hand side of it.
There is some problem between the CURRENTCLIENTID and the VisuElems.VisuElemBase.IMouseEventHandler in case you refresh the page, looks like the CURRENTCLIENTID gets updated but the IMouseEventHandler for the mouse, reports the old client id. This gets solved after refreshing the page a couple of times. Also I have 2 text fields in the visualization showing the CURRENTCLIENTID and the VisuElems.g_ClientManager.GetClientId(THIS^._pCurrentClientData), only the CURRENTCLIENTID gets incremented every...
Was trying to make the visualization independent from each other, but in fact I had the "User CurrentVisu variable" in the Visualization Manager checked, that forced all clients to behave as one. If I uncheck that, then it works independent from each other. Anyways if anyone else wants to get the visualization id directly from a visualization picture this works within a text field or any other visu objects that support tags or logic. Return user visu clientId. VisuElems.g_ClientManager.GetClientId(THIS^._pCurrentClientData)...
Did you managed to find out how to get independent visualizations?