
Just about anything will do but lets start simpleĭrag a CANVAS control out onto the window In that event you can change the color of “something” or set a status that can be used to control the color of somethingĢ) what kind of indicator should I use for this status?
#Xojo examples code
In the code for the CONNECTED event you may get a response (this is the part that I cant tell / test since I dont have one) what kind of indicator should I use for this status?.control teh indicator on the main window to show the CONNECT status?.I have added a CONNECT handler to teh TCPSocket, but heres where I get lost… I would like to put in the window some sort of indicator that I can, say change the color from RED to GREEN based on the connect status. In that action I have the following: TCPSocket1.Connect() So I have created a button on Window 1 and added an action. If I right click on it, and select INSPECT I get a panel on the right side where in the BEHAVIOR section I can put the IP address and PORT as opposed to the lines in the button action you have listed above -Is this ok? I dragged the TCPSocket into the workspace and its sitting at teh bottom of the screen. I have teh device configured with an IP address of 10.10.5.188 and it responds on port 10000Īccording to the manufacturer its pretty straightforward to connect to these servers and pointed me to this: Here is the device I am looking to connect to:

What specific code should go in these will depend entirely on how the device / computer / etc you’re trying to connect TO expects to communicate

Responding to any data or other errors would be done by adding the EVENT HANDLERS to TCPSocket1

