Industry Online Support
Technical Forum
5/10/2006 2:10 PM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
I am sure there are many ways to do this but here is my take ... 1) Draw an HMI Symbol Library behind the Text List and make it invisible. (I used the Basic Shapes \ Banner object and set the Style to Transparent) 2) Draw a Rectangle object and make it invisible 3) Use the MouseOver Event script to detect the cursor position and if the cursor has moved away from the control, set the focus to another object. e.g. [code] { if ((x < 0) || ( x > 100) || (y < 0) || ( y > 100) ) { printf("%d %d \r\n", x,y); //used to get co-ordinate values used above Set_Focus(lpszPictureName, "Rectangle1"); // sets focus to invisible rectangle } [/code] Please note that the co-ordinates in the script for the x and y cursor position will need to be modified to suit your application. I have attached an example PDL using WinCC V6SP4. There are two text lists, one with invisible objects and the second so that you can see what I have done. I hope this helps, Salma Attachmenttext list.zip (618 Downloads) |
Follow us on