It is currently Sat Jun 24, 2017 3:23 am

News News of Develop Once, Deploy Anywhere!

Site map of Develop Once, Deploy Anywhere! » Forum : Develop Once, Deploy Anywhere!

Enables developers to rapidly develop and package the the exactly same code and UI into Web, Native Desktop and Mobile Apps.

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 : 3100 | Replies : 0 | Forum : CrossUI for Desktop Apps


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 : 2113 | Replies : 0 | Forum : CrossUI for Desktop Apps


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 : 2541 | Replies : 0 | Forum : CrossUI for Desktop Apps


Pop dialog outside of parent

Pop dialog outside of parent by creating new dialog

// The default code is a com class (inherited from xui.Com)
Class('App', 'xui.Com',{
// Ensure that all the value of "key/value pair" does not refer to external variables
Instance:{
// To initialize instance(e.g. properties)
initialize : function(){
// To determine whether or not the com will be destroyed, when the first UI control be destroyed
this.autoDestroy = true;
// To initialize properties
this.properties = {};
}, ...
Read more : Pop dialog outside of parent | Views : 2085 | Replies : 0 | Forum : CrossUI for Web Apps


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 : 2543 | Replies : 0 | Forum : CrossUI for Desktop Apps


Distributed UI Module function

Is it possible to call a function in a module that has been loaded using the distributed UI model.

I have a form loading as a module based on a previous selection and see how to interact between index.js and module1.js.

It is my lack of knowledge in JS causing the problem.

Also in CrossUI debug is it possible to get the PHP calls working. I can't find any useful help on debug

Thanks
Kevin
Read more : Distributed UI Module function | Views : 4463 | Replies : 5 | Forum : CrossUI for Web Apps


calc workflow, control-name-independent, available statuses

Example shows how to calculate available statuses for transition.

Enter status name into 'Input' control and press 'show'

Blue - is anavailable blocks
Yellow - current status
Green - available for transition

// The default code is a com class (inherited from xui.Com)
Class('App', 'xui.Com',{
// Ensure that all the value of "key/value pair" does not refer to external variables
Instance:{
// To initialize instance(e.g. properties)
initialize : function(){
// To determine whether or not ...
Read more : calc workflow, control-name-independent, available statuses | Views : 2191 | Replies : 0 | Forum : CrossUI for Web Apps


CrossUI RAD Desktop 1.25 is released!

We just released the CrossUI RAD Desktop version 1.25.

Changes since v1.24:


1. Added rename, copy and explore functions in the contextmenu of the "Project Manager" panel;
2. Added file/fold moving(Drag&Drop) function for the "Project Manager" panel.
3. Added "renderAs" button on the Code Editor toolbar;
4. Allows users to add any type of empty file;
5. Updated codemirror to 4.3;
6. Some bugs fixed.


You can get started downloading now: ...
Read more : CrossUI RAD Desktop 1.25 is released! | Views : 2312 | Replies : 0 | Forum : Announcement


CrossUI RAD Desktop 1.24 is released!

We just released the CrossUI RAD Desktop version 1.24.

Changes since v1.22:


    1. Added a cracker for v8 unstable sort : _.arr.stableSort;
    2. Updated codemirror to 4.2
    3. Resolving some memory leak problems in the designer.
    4. Enhanced intellisense code for derived class.
    5. Some bugs fixed.

You can get started downloading now: http://www.crossui.com/download.html.
Read more : CrossUI RAD Desktop 1.24 is released! | Views : 2147 | Replies : 0 | Forum : Announcement


Opening image file types

Should it be possible to open .png .jpg etc files in the editor just to get a load of rubbish.

Kevin
Read more : Opening image file types | Views : 2013 | Replies : 1 | Forum : Bug Report


 

Login  •  Register


Statistics

Total posts 960 • Total topics 321 • Total members 35

cron