9/5/2014 10:21 AM | |
Joined: 2/21/2014 Last visit: 3/14/2024 Posts: 652 Rating: (344) |
Hi Illinois_steel
you can try the concept in attached PDL. You will have to add you conditions like name should not be empty, value should not be more then number of rectangles. if you have selected first row, down button should be disabled or something like that.. i have tried to create a test application for you for 4 rectangles. please let me know if it help? AttachmentD:\Temp\Test.zip (134 Downloads) |
Last edited by: Min_Moderator at: 9/5/2014 4:31 PMChange attachment name and reupload You can always use "Rate" and "To Thank" button to appreciate my efforts in helping you :) |
|
9/8/2014 6:48 AM | |
Joined: 2/21/2014 Last visit: 3/14/2024 Posts: 652 Rating: (344) |
Sorry, i did not notice the WinCC version you have mentioned. i used WinCC 7.3 :( i have no lower wincc version here. if you have someone there who have wincc 7.3 you can open this file there. how ever based on your screenshot here is what i did : 1) name the rectangles like r1,r2..r8 and so on. give same back color for all the rectangles. e.g. GRAY. 2) place two i/o fields to hold temp. data. ( keep display as NO so that these are not visible in runtime) 3) place two buttons up and down. 4) select any rectangle first time (user can select any rectangle in the start, i assume) 5) on click event of rectangle select, store the object name and number in the two i/o fields, and change the back ground color of the selected rectangle to some color you want as to show for the selected reactangle. e.g. GREEN color. see rect_click1.txt. for the next rectangle see rect_click2.txt 6) now you can on up button click event write a script to move the selection to next rectangle. get the name of selected reactangle from one i/o field and the number of rectangle from the other io field. creat the name of next rectangle to be selected using these values and change to color. see rect. up.txt same for down button. see down.txt You have to take care of other conditions like if the first rectangle is selected you can not click down button, same for up button in case of last reacangle is slected and so on. Hope this is the solution you are looking for. AttachmentD:\Temp\script.zip (157 Downloads) |
Last edited by: Min_Moderator at: 9/15/2014 8:36 AMChange attachment name and reupload Last edited by: Harry (India) at: 9/8/2014 9:03 AMadditionally with the each button click event you can increment / decrement the Tag value also along with changing the back color and other stuff You can always use "Rate" and "To Thank" button to appreciate my efforts in helping you :) |
|
This contribution was helpful to1 thankful Users |
9/8/2014 5:09 PM | |
Posts: 8 Rating: (0) |
Thanks Harry! It worked and I will make those adjustments as you mentioned.
Thanks again. |
Follow us on