I am using WinCC 3.15 P05 on Win 7. You can recreate the behaviour by creating a panel and within the RightMousePressed event define the following:
Code: Select all
main(mapping event)
{
const dyn_string txt = makeDynString("PUSH_BUTTON, text1, 1, 1");
int answer;
popupMenu(txt, answer);
}However, the following code works perfectly:
Code: Select all
main(mapping event)
{
dyn_string txt;
txt = makeDynString("PUSH_BUTTON, text1, 1, 1");
int answer;
popupMenu(txt, answer);
} 