plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WinCC Professional Popups

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSIEMENS SIMATIC HMI
View previous topic :: View next topic  
Author Message
recyclebin
Junior 2
Junior 2


Joined: 23 May 2015
Posts: 24

PostPosted: 24/07/2016 17:41    Post subject: WinCC Professional Popups Reply with quote

WinCC Professional Popups

https://www.dmcinfo.com/latest-thinking/blog/id/8718/categoryid/67/wincc-professional-popups

WinCC Professional Popups WinCC Professional Popups

Code:

#include "GlobalDefinitions.h"
void OnClick(char* screenName, char* objectName, char* propertyName)
{
    // Set the popup screen window to use the right popup
    ActivateScreenInScreenWindow ("MAIN", "Popup_Screen", "Motor_Popup");
 
    // Sets tag prefix of popup to same value as the screen window that contains this screen
    SetPropertyByConstant("MAIN", "Popup_Screen", "TagPrefix", GetPropChar(GetParentScreen(screenName), GetParentScreenWindow(screenName), "TagPrefix"));
 
    //This sets x_postition/y_postion internal tags to move Popup Screenwindow
    SetTagByProperty ("@NOTP::X_Position", GetParentScreen(screenName), GetParentScreenWindow(screenName), "Left", hmiWithoutOperatorEvent);
    SetTagByProperty ("@NOTP::Y_Position", GetParentScreen(screenName), GetParentScreenWindow(screenName), "Top", hmiWithoutOperatorEvent);
 
    //Unide the popup
    SetBit ("@NOTP::bShowPopup");
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSIEMENS SIMATIC HMI All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro