Template buttons, close application / Close application and shutdown PC

Discussion about Template Builder and graphic pages creation.
bctBCT76
Posts: 23
Joined: Wed Jun 24, 2015 11:39 am

Template buttons, close application / Close application and shutdown PC

Postby bctBCT76 » Sat Oct 08, 2016 10:13 am

Dear all,

I wish I can place 2 buttons on the main template:
-button one to close Runtime application running;
-button two to close Runtime and shutdown PC.

would that be possible? Please let me know your suggestions to achieve that..

User avatar
admin
Site Admin
Posts: 322
Joined: Tue Nov 17, 2009 1:18 pm

Re: Template buttons, close application / Close application and shutdown PC

Postby admin » Tue Oct 11, 2016 1:47 pm

Dear Sir,
yes, you can create a simple code function called by "OnClick" property.

Code for close application:

Function void CloseApplication()
EnableShutdown(false);
CloseSession();
end

Code for shutdown pc:

Function void ShutdownSystem()
EnableShutdown(true);
CloseSession();
end


Return to “Templates - Template Builder”

Who is online

Users browsing this forum: No registered users and 1 guest