NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Alberto on May 28, 2013, 05:48:37 PM

Title: Autoshutdown, how to use it?
Post by: Alberto on May 28, 2013, 05:48:37 PM
Searching in the docs I cant find any data of how to use it.
Then... how to use it?
Any example?
Thanks
Title: Re: Autoshutdown, how to use it?
Post by: Bruce on May 28, 2013, 09:33:54 PM
http://www.capesoft.com/docs/NetTalk7/NetTalk2.htm#CloseAppControls
Title: Re: Autoshutdown, how to use it?
Post by: Alberto on May 29, 2013, 03:25:09 AM
Thanks
How can I translate the warning and closing window?
I can modify the messages but...
I mean the "caption" and other text not being the message itself.

Regards
Title: Re: Autoshutdown, how to use it?
Post by: Bruce on May 29, 2013, 07:52:14 AM
the window is declared in the
.ProcessWarningRequest method and the ProcessShutdownRequest method.
so if you wanted to change the text on the window I think you'd need to derive those methods, starting with the code that is already there, and then modify that.

In the 7.11 build I'll add a .Translate method though so you can more easily translate the text.

Cheers
Bruce


Title: Re: Autoshutdown, how to use it?
Post by: Alberto on May 29, 2013, 09:38:07 AM
OK,

I have a client in which in severals PC the firewall does not allow my app to run.

Which ports AutoSut an AutoRefresh are using?

Thanks
Title: Re: Autoshutdown, how to use it?
Post by: Bruce on May 29, 2013, 09:50:14 PM
that depends on you - or at least the ports are in your control.
see
http://www.capesoft.com/docs/nettalk/NetTalk2.htm#NetOptions
especially;
NET:SETMAXINSTANCES
NET:SETDGPORT
and
NET:SETSPORT

Cheers
Bruce