recyclebin Junior 2

Joined: 23 May 2015 Posts: 24
|
Posted: 24/07/2016 17:41 Post subject: WinCC Professional Popups |
|
|
WinCC Professional Popups
https://www.dmcinfo.com/latest-thinking/blog/id/8718/categoryid/67/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");
} |
|
|