Frameless desktop application

You must Login before you can answer or comment on any questions.

Hi,

we'd like to develop a full screen desktop application without a window frame (similar to an ATM). The operating system shall be Linux.

Is this possible with Titanium? How can we do this?

Thanks,

— asked 3 years ago by Si St
0 Comments

2 Answers

You could set the window fullscreen.

http://developer.appcelerator.com/apidoc/desktop/latest/Titanium.UI.UserWindow.setFullscreen-method

Hi Dan,

your answer gave me an idea and I've looked around in the framework a bit. Editing the <chrome> - value in the tiapp.xml does the trick. I changed the settings as follows:

    &lt;width&gt;-1&lt;/width&gt;
    &lt;max-width&gt;-1&lt;/max-width&gt;
    &lt;min-width&gt;-1&lt;/min-width&gt;
    &lt;height&gt;-1&lt;/height&gt;
    &lt;max-height&gt;-1&lt;/max-height&gt;
    &lt;min-height&gt;-1&lt;/min-height&gt;
    &lt;fullscreen&gt;true&lt;/fullscreen&gt;
    &lt;resizable&gt;false&lt;/resizable&gt;
    &lt;chrome scrollbars=&quot;false&quot;&gt;false&lt;/chrome&gt; &lt;!-- That's the important setting --&gt;
    &lt;maximizable&gt;false&lt;/maximizable&gt;
    &lt;minimizable&gt;false&lt;/minimizable&gt;
    &lt;closeable&gt;false&lt;/closeable&gt;

Then I've got a nice window without any os guy elements that covers the screen completely. The values can be changed programmatically as you've described above. Only the chrome setting you can't change after initializing the window.

Your Answer

Think you can help? Login to answer this question!