Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Popup Screen Open Status
PostPosted: Wed Jul 04, 2018 2:19 am 

Joined: Sun May 27, 2018 9:11 pm
Posts: 7

Offline
Is there any way to check popup screen is opend or not by scripting without using any tag?


 Profile  
 
 Post subject: Re: Popup Screen Open Status
PostPosted: Tue Sep 11, 2018 9:03 am 
User avatar

Joined: Thu Nov 16, 2017 3:32 pm
Posts: 54

Offline
You could use global variables in scripting to keep track, but that is essentially a tag, and tags might be easier.
But there isn't a method that you can access for that information like
Code:
if(PopupScreen1.IsCurrentlyOpen())
{
     //Do something
}

_________________
iX Quick Links:
iX Reference Manual: http://beijerinc.com/download/index.php?id=ix/referencemanual
iX Video Tutorials: https://www.beijerelectronics.com/en/Products/software/ix-hmi-software/Vimeo___video___page


 Profile  
 
 Post subject: Re: Popup Screen Open Status
PostPosted: Wed Feb 06, 2019 4:42 am 

Joined: Thu Feb 11, 2016 5:11 am
Posts: 13

Offline
If there are no available methods to this, a quick hack would be something like this I would assume:

- make a internal boolean tag popupOpened
- set popupOpened to true in popup_Opened()
- set popupOpened to false in popup_Closed()

Code:
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
   Globals.Tags.popupOpened.Value = true;
}
      
void Screen1_Closed(System.Object sender, System.EventArgs e)
{
   Globals.Tags.popupOpened.Value = false;
}


You can as Russ mentioned do this by using global variables as well, any reason why you don't want to use a tag to do this?


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: