It is currently Tue May 30, 2017 11:18 am

News News of CrossUI for Desktop Apps

Site map of CrossUI for Desktop Apps » Forum : CrossUI for Desktop Apps

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...

Desktop App Icon

I want to change the icon associated with the exe file created when you compile a desktop app. Can I do this within the IDE or do I have to swap out a file? Which file?
Read more : Desktop App Icon | Views : 794 | Replies : 3


Reload desktop app from new IP address

I want to deploy my industrial instrumentation app, which was developed as a web app, so that it runs as a desktop app. The web app loads from an embedded server into the browser, connects to a websocket at the embedded server address and then continuously retrieves data that gets displayed on the browser's CrossUI gui. When the user enters a new server address in the browser's address window, the web app restarts and reloads ...
Read more : Reload desktop app from new IP address | Views : 277 | Replies : 1


location.protocol problem

I have a comprehensive web app developed in CrossUI Ver 1.4 that I want to also deploy as a desktop app. The location.protocol property, which in Ver 1.3 and earlier used to return "file:" when deployed as desktop app, now returns "chrome extension" when deployed as desktop app. Any idea what's going on?
Read more : location.protocol problem | Views : 310 | Replies : 1


Load new url in desktop deployment version

I have an app that I have to deploy as either a web version (runs in browser) or as a desktop exe. In the desktop version, the app still has to work in conjunction with a user-defined server, so I added an input box where the user can enter the url of the server. The server destination can be changed at any time by typing a new url in the box. I'm doing this using ...
Read more : Load new url in desktop deployment version | Views : 1482 | Replies : 2


Show debug window programmatically

Show debug window

javascript code
if(typeof(require)=='function') require('nw.gui').Window.get().showDevTools();
Read more : Show debug window programmatically | Views : 3076 | Replies : 0


close application programmatically

close application programmatically :

1-st way
javascript code
process.exit(code=0);


2-nd way
javascript code
var win=require('nw.gui').Window.get();
win.maximize();
win.show();

win.close();
Read more : close application programmatically | Views : 2095 | Replies : 0


shell execute

shell execute:

javascript code
var childProcess = require('child_process');
childProcess.exec('wscript.exe C:\\test\\1.vbs',
function (error, stdout, stderr) {
xui.echo('stdout: ' + stdout);
xui.echo('stderr: ' + stderr);
if (error !== null) {
xui.echo('exec error: ' + error);
}
});
Read more : shell execute | Views : 2515 | Replies : 0


File read/write

As i understood Node.js can be used:

read:
javascript code
fs = require('fs');
fs.readFile('c:\\test.txt', 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
console.log(data);
});


write:
javascript code
var fs = require('fs');
fs.writeFile("c:\\test.txt", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
Read more : File read/write | Views : 2520 | Replies : 0


bug when creating new empty project

Hi

I have version 1.22

when creating new blank project, and try to run it in debug a got blank program

Image


here the debug.html


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="GUI design,GUI builder,web UI,RAD,RIA,development tool,multi-platform,cross-platform,web app" />
<meta name="description" content="Built by CrossUI RAD Tools - Develop Once,Deploy Anywhere, HTML5, CSS3 and JavaScript for all platforms" />
<meta name="copyright" content="[email protected]" />
<meta http-equiv="imagetoolbar" content="no" /> ...
Read more : bug when creating new empty project | Views : 2647 | Replies : 5


treegrid hotrow

Hi again

I tried the sample on orderManager and try to reproduce hotrow but does't work, ordermanager update row on database or delete it but I want it more simple than that, I want an empty grid
and people can add row on the fly and click a button save to save the data on the grid in a database.

but I don't understand how hotrow work it's not pretty clear and not much explanation ...
Read more : treegrid hotrow | Views : 2857 | Replies : 4


 

Login  •  Register


Statistics

Total posts 960 • Total topics 321 • Total members 35

cron