| Dart Home | PowerTCP Emulation for .NET | Custom Development | Reply | PowerTCP Emulation for .NET Topics | Forums |
| Author | Forum: PowerTCP Emulation for .NET Topic: Cursor not position correctly |
| kwschantz From: Summerland, CA USA Posts: 4 Member Since: 02/11/06 |
posted February 11, 2006 9:12 PM I'm using the vt emulator with an external SSH connection. Everything works great except that the cursor position doesn't move unless the form loses focus or is resized. I've tried using the SynchronizedObject as described in another post, but that didn't work. If I call Resize after every screen write it works, but the screen flashes. Is there any way to force a refresh of the cursor? |
| kwschantz From: Summerland, CA USA Posts: 4 Member Since: 02/11/06 |
posted February 11, 2006 11:30 PM I found the solution, which is thread related, but which is not resolved by using SynchronizedObject property. If you are not using the telnet class provided by PowerTCP then you need to handle the thread synchronization yourself. The example below illustrates how to sync the data with the UI thread. void OnEvent(object sender, EventArgs e) { if(InvokeRequired) Invoke(new EventHandler(OnEvent), new object[] {sender, e}); else { // Update the UI } } |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 13, 2006 9:08 AM Thank you for the helpful tip! |
| asafl1976 From: Yokneam, Israel Posts: 2 Member Since: 01/31/10 |
posted January 31, 2010 10:27 AM Hi kwschantz, I have the exact same problem, I built a terminal application that echos back chars that I type to the vt control (using the serial port) and the cursor is not moving (trailing) the chars. I'm sorry but I didn't understand your solution above. I have a window form containing the vt control and I pasted the code you posted but I don't understand who is calling this function and what do you mean //Update the GUI Please help Thanks!! Asaf |
| Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted February 1, 2010 1:17 PM Thank you for your post. Please submit all presale directly to support@dart.com. You will receive an off-line response to this question. Thank you. |
| Reply | PowerTCP Emulation for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|