Error :the main window is not a main window picture

Hi,

I create a new screen and at run time,I have one error.

The main window is not a main window picture?

4 Replies

  • Do you have the pb_isnotMain variable defined/present?
  • In reply to lazy_engineer:

    Where I have to find it?I didn't defined but that project was implemented by other company.So It maybe there but where I have to find it?
  • I believe there is a main picture template graphic file that you should start from in order to create your display. However, most people take a very similar main display that already works and duplicate it, then delete all the unnecessary objects. Problem with that is you sometimes leave behind extraneous invisible objects or remove necessary invisible objects.
  • In reply to obi1987:

    With the templates, I believe the variable is embedded in an invisible object group named "VariableGroup". Within VariableGroup there are 3 variables - pb_isNotMain, pn_myMonitor & ps_CurrentLink. You might be able to find it easier looking through the System Tree rather than on the graphics page itself. If you are unable to find the VariableGroup object on the page, it may have been mistakenly omitted or deleted. You can simply copy the group from another page that does have it and paste it on the graphics page that is giving you problems.