Thanks that fixed the problem where it wouldn't send to me, but clients other than the host can't see it. I moved the opening function to the gui. Though I would still like to make the first parameter name the window, sort of like the messageBoxDlg gui.
exec("./store.gui");
registerOutputEvent(fxDTSBrick,setStore,"string 100 100");
function fxDTSBrick::setStore(%this, %arg1, %client)
{
if(%arg1 $= "")
{
return;
}
commandToClient(%client,'StoreGui',%arg1);
}
function Store_Content::setTab(%this,%tab)
{
%c = %this.getCount();
for(%i=0;%i<%c;%i++)
{
%obj = %this.getObject(%i);
if(strPos(%obj.getName(),"Store_") > -1)
%obj.setVisible(0);
}
%tab.setVisible(1);
%tab.onTabWake();
}
I'm sure the last part has nothing to do with it.