It is currently Mon Jul 24, 2017 2:29 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.

Costom Cell's Editor Control

xui.Class('App', 'xui.Module',{
Instance:{
iniComponents : function(){
// [[Code created by CrossUI RAD Studio
var host=this, children=, append=function(child){children.push(child.get(0));};

append(
xui.create("xui.UI.Dialog")
.setHost(host,"xui_ui_dialog1")
.setLeft("2.5em")
.setTop("1.6666666666666667em")
.setWidth("35.833333333333336em")
.setHeight("20em")
.setCaption("Customize Cell's Editor")
.setMinBtn(false)
.setMaxBtn(false)
);

host.xui_ui_dialog1.append(
xui.create("xui.UI.Block")
.setHost(host,"xui_ui_block2")
.setDock("fill")
.setLeft("2.5em")
.setTop("2.5em")
.setBorderType("inset")
.setBackground("#FFFFFF")
);

host.xui_ui_block2.append(
xui.create("xui.UI.TreeGrid")
.setHost(host,"xui_ui_treegrid2")
.setLeft("0em")
.setTop("0em")
.setRowNumbered(true)
.setEditable(true)
.setRowHandler(false)
.setHeader()
.setRows([{
"cells":
},
{
"cells":
}])
.beforeIniEditor("_xui_ui_treegrid2_beforeinieditor")
);

append(
xui.create("xui.UI.List")
.setHost(host,"xui_ui_listeditor")
.setDirtyMark(false)
.setShowDirtyMark(false)
.setItems([{
"id":"item1",
"caption":"item1"
},
{ ...
Read more : Costom Cell's Editor Control | Views : 15 | Replies : 0 | Forum : CrossUI Code Snaps


draggable SVG rect and xui 2.0a

Why this code doesn't work with 2.0 ?
but it works with 1.4

It must set new left and top position of the SVG rectangle

// The default code is a module class (inherited from xui.Module)
// Ensure that all the value of "key/value pair" does not refer to external variables
xui.Class('App', 'xui.Module',{
Instance:{
// Dependency classes
Dependencies:,
// Required modules
Required:,

// To initialize properties
properties : {},

// To initialize instance(e.g. properties)
initialize ...
Read more : draggable SVG rect and xui 2.0a | Views : 119 | Replies : 2 | Forum : CrossUI for Web Apps


Make a container position draggable

How to make a Group (or possibly a panel) movable by the user by dragging?
Read more : Make a container position draggable | Views : 119 | Replies : 0 | Forum : CrossUI for Web Apps


Fusion Charts "onDataClick" Event

...doesn't fire.

The "onFusionChar"t event does work.

Ver 1.42LTS
Read more : Fusion Charts "onDataClick" Event | Views : 581 | Replies : 9 | Forum : CrossUI for Web Apps


Search all files

In a large project, it's convenient to break it up into a number of files. One of the problems this causes is when using the Search/Replace function....it only searches the currently open file. It would be nice to have a Search/Replace option to search all files in the project.

Joe
Read more : Search all files | Views : 254 | Replies : 1 | Forum : Functional Requirement


ComboList Control

Assume an existing populated ComboList; Can you show examples of:

1) Add an item to the list
2) Remove an item from the list
3) Clear the list
Read more : ComboList Control | Views : 303 | Replies : 3 | Forum : CrossUI for Web Apps


Real code version

Can anyone write this out as normal code. I can't get the syntax right as it is a window in a window and refuses to accept "main"

xui.ComFactory.newCom("App.userPrefs",function(){ ????????????????

The code auto generated work a treat (shown below) I know I don't need the conditions part

"desc":"userprefs",
"type":"page",
"target":"App.userPrefs",
"params":,
"method":"show",
"conditions":[{
"left":"{args.id}",
"symbol":"=",
"right":"userprefs"

Thanks
Kevin
Read more : Real code version | Views : 214 | Replies : 1 | Forum : CrossUI for Web Apps


Panel user stretchable

I have a panel that contains a grid control. I want the user to be able to stretch the panel's width and height and the grid size should follow to fill the panel. Is there a property for this?
Read more : Panel user stretchable | Views : 208 | Replies : 1 | Forum : CrossUI for Web Apps


templates not working on new project or new page

I can only seem to be able to create a blank project.
When I press on the different examples they don't work (no response).
I ran the debugger and see this:

index.js:1 Uncaught TypeError: Cannot read property 'name' of undefined
at Object._btn_apply_onclick (index.js:1)
at Object._ctl_gallery_onitemselected (index.js:1)
at Function.tryF (xui.js:9)
at fun (xui.js:9)
at Object.f (xui.js:9)
at onClick (index.js:1)
at f (xui.js:9)
at Function.Constructor (xui.js:9)
a
Read more : templates not working on new project or new page | Views : 446 | Replies : 4 | Forum : Bug Report


CrossUI editor problem on reload

Hi.

I downloaded the latest crossUI 2.0 and am running on the Mac.
I'm having an issue where crossui runs well when I create a project. But if I exit crossUI and try to run it at a later time, I can load the project but the editor shows an empty screen with no components ... as if I started from scratch. When I look at the code, the code is correct and hasn't changed. ...
Read more : CrossUI editor problem on reload | Views : 553 | Replies : 5 | Forum : Bug Report


 

Login  •  Register


Statistics

Total posts 961 • Total topics 322 • Total members 35

cron