9/18/2014 1:26 PM | |
Posts: 31 Rating: (1) |
Hi, I am trying to create a menu bar that can call the ShowTrendSelection() for a trend. I have several picure windows that contains the different trends on my main screen and i open these picture windows via a button. On the trend pictures i want to use the ShowTrendSelection() function. when i put the function on a button it works correctly but if i create a menu and put it on the picture window with the same script it does not work. How can i make this work? i have attached images of my scripts. Thank you in advance. AttachmentScripts.zip (53 Downloads) |
9/19/2014 10:18 AM | |
Posts: 31 Rating: (1) |
Hi, I added a message box that counts all the objects in the picture but it does not trigger when use the menu. I am using the script debugger but no errors are triggered. i added the message box function to an ordinary button to test it and message box works. I have attached the BMO file. Thank you in advance AttachmentNewModule1.zip (42 Downloads) |
9/23/2014 9:29 AM | |
Posts: 31 Rating: (1) |
Hi, I have tried the script in a button on the picture window that contains the trend and it works correctly. It still wont work when used in a menu though. I have attached the picture, menu and the script file for you as well as a .txt file explaining the functionality a bit more. I appreciate the help. AttachmentPicture and menu.zip (25 Downloads) |
9/24/2014 9:23 AM | |
Joined: 2/21/2014 Last visit: 3/14/2024 Posts: 652 Rating: (344) |
Hi Aerrree, After a lot of work to set the Menu in my runtime, i think i have found the solution. "ScreenItems" should be used as HMIRuntime.ActiveScreen.ScreenItems Please check in the attachment. Works fine for me. Thanks, HarrY AttachmentHelp.zip (49 Downloads) |
Last edited by: Min_Moderator at: 9/24/2014 12:52 PMChange name of attachment You can always use "Rate" and "To Thank" button to appreciate my efforts in helping you :) |
|
Follow us on