Loading a New Screen (1 Viewer)

john_rod

Portal Member
November 24, 2005
5
0
Hi Guys

I was hoping someone would be able to help me.
I have a plugin that I am working on which when certain buttons are pressed it will load up a new window.

This all works well the main problem is that when that screen is selected. Screen that not do much at the moment the cpu jumps to 50%
when I close that screen and go back to the main screen the CPU drops to 2%.

Can you tell me what the correct way to load a new screen is.

Just in case I'm doing something stupid.

John_rod
 

SteveV

Retired Team Member
  • Premium Supporter
  • October 13, 2005
    340
    0
    Boston, Massachusetts USA
    John_rod,

    Try the following:

    Code:
    GUIMessage msg = new GUIMessage GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)windowID, 0, null);
    
    GUIWindowManager.SendThreadMessage(msg);

    ...where windowID is a value from the GUIWindow.Window enum

    --Steve
     

    Users who are viewing this thread

    Top Bottom