Author Topic: Click on the brick for GUI bring up to your screen.  (Read 1520 times)

registerOutputEvent(fxDTSBrick,"CreateGroup","", 0, 1);
function fxDTSBrick::Group(%this,%client)
{
   commandToClient(%client,'OpenGroupNaGUI');
}


it should be fxDTSBrick::CreateGroup
Okay, aslo I forget add the package too. And I got syntax error.

Error
Code: [Select]
registerOutputEvent(##f##xDTSBrick,"CreateGroup","", 0, 1);

function fxDTSBrick::CreateGroup(%this,%client)

{

^commandToClient(%client,'OpenGroupNaGUI');

}


Code: [Select]
registerOutputEvent(fxDTSBrick,"CreateGroup","", 0, 1);

function fxDTSBrick::CreateGroup(%this,%client)
{
commandToClient(%client,'OpenGroupNaGUI');
}
this code runs perfectly fine, your probably executing the register function inside a package or other code has errors in it

canvas.pushdialog will only work on a gui control object.  You are attempting to use it on a gui window control object.

The correct format should start like this:

Code: [Select]
new GuiControl(MyGUI) {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 2";
   visible = "1";

   new GuiWindowCtrl() {
      //etc...

If you want to just open the window without using a new gui control object, you need to add the window to the current active gui control.
« Last Edit: October 19, 2013, 06:45:54 PM by Nexus »