Difference between revisions of "Application:set"

From GiderosMobile
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2015.7<br/>
+
'''<translate>Available since</translate>:''' Gideros 2015.7
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
+
<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]
 +
<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
<translate>
Sets the state of the desktop setting provided as string parameter.<br />
+
Sets the state of the desktop setting provided as string parameter.
<br /></translate>
+
</translate>
 
<source lang="lua">
 
<source lang="lua">
 
application:set("windowTitle", "My lovely window title")
 
application:set("windowTitle", "My lovely window title")
 
</source>
 
</source>
<translate><br />
 
 
<br/>
 
<br/>
Get list of parameters that can be set with:
+
<translate>To get a list of parameters that can be set use:</translate>
</translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
print(application:set("help"))
 
print(application:set("help"))
 
</source>
 
</source>
<translate><br />
+
<br/>
Get help for individual settings with:
+
<translate>To get help for individual settings use:</translate>
</translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
print(application:set("cursor","help"))
 
print(application:set("cursor","help"))
 
</source>
 
</source>
 +
<br/>
 +
<br/>

Revision as of 00:40, 13 June 2019


Available since: Gideros 2015.7
Class: Application

Description

Sets the state of the desktop setting provided as string parameter.

application:set("windowTitle", "My lovely window title")


To get a list of parameters that can be set use:

print(application:set("help"))


To get help for individual settings use:

print(application:set("cursor","help"))