|
From: Michael B. <mi...@mi...> - 2003-10-24 15:45:27
|
>> I also wrote a VDE wrapper that lets you import the
>> saved vde xml file
>> directly into the dynapi, and it will recreate the
>> project for you.
>
> Not sure how this works but will look into it.
It's a simple little thing could be useful later I. I have a gut
feeling something like this will be needed
>> I also gave Spock a little face lift so that it
>> doesn't feel left out.
>
> Ok, but now I can hardly see the button outlines.
???? That odd they look fine on my TFT and my Radius
>> If anybody got Ideas for the add event or add widget
>> please let me know.
>
> I think add events to widgets should be much easier to
> do. Here how I think it can be done:
>
> 1) Double click on a layer to open up a code window.
> This window will contain a drop down menu of the
> various events.
>
> 2) The user then selects the event and then enter som
> code in a text box below the drop down menu and then
> click ok. This should then save the text into some
> events collection object.
Ok thanks
I have one idea that will try to do first.
> Have you ever tried creating a very large project with
> the vde? You should try it and then try saving and
> loading the project to how it performs performs.
>
> SODA takes a longer time to convert a js object into
> string and back than it would a js array. Where
> possible it's best to use arrays. For the DataSource
> class I had to use to following format inorder to get
> better performance when working with lots of data.
>
> record={
> dataRowIndex:0,
> dataRowCount:4,
> fieldnames:['id','fname'],
> fieldvalues:[ [1,'mary'],
> [1,'jane'],
> [1,'john'],
> [1,'paul'],
> ]
> }
This is the sytem I'm using now to collect the info
array[array.length] = {
dynlayer:c.name,
x:c.getX(),
y:c.getY(),
w:c.getWidth(),
h:c.getHeight(),
color:c.getBgColor(),
v:c.getVisible(),
z:c.getZIndex(),
img:c.getBgImage(),
html:c.getHTML(),
parent:c.parent.name,
locked:c.isLocked,
isVisible:c.isVisible,
vislyr:c.vislyr,
linkedTo:c.linkedTo,
name:c.name,
isRelative: c.isRelative
}
Isn't this the fastest way. There are no sub arrays or objects.
Except for relative (not tested this feature with save and paste)
They are all numbers and strings.
?
|