It is currently Mon Aug 21, 2017 7:54 pm

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.

License key limited to 3 computers

Hi
I'm not sure if this is the correct place for this post :/

I have one PC that runs Linux.
I installed CrossUI for win32 on the hard drive of this Linux pc.
I run virtual machines with win32 & run CrossUI for win32 to develop apps.
I am having a problem where one of the applications is not working correctly.
So I'm trying different virtual machines to track down the problem
before I ...
Read more : License key limited to 3 computers | Views : 1942 | Replies : 1 | Forum : Functional Requirement


Simple Form Builder, Build form from JSON array

Press 'готово' button and see console.log

// 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 = {};
},
// To initialize ...
Read more : Simple Form Builder, Build form from JSON array | Views : 3762 | Replies : 0 | Forum : CrossUI for Web Apps


SVG append

Can anyone help me with the append commands for svg to paper, also show/hide.

Tried all combinations with no joy, not even sure I am on the right track or if it is possible.

Thanks
Kevin
Read more : SVG append | Views : 2784 | Replies : 3 | Forum : CrossUI for Web 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 : 3163 | 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 : 2165 | 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 : 2610 | 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 : 2135 | 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 : 2607 | 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 : 4630 | 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 : 2264 | Replies : 0 | Forum : CrossUI for Web Apps


 

Login  •  Register


Statistics

Total posts 983 • Total topics 324 • Total members 35

cron