Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 19 of 19 total
Thread Date Scroller (Like Smartphone)
Wed, Feb 12 2014 7:33 PMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Okay, I have add to add a test to see if the compression is turned on
and the name changes to:

PassedInPaintObject.aA_e2.F_e2;

I will post an update in the demos group

Chris Holland
[Team Elevate]

On 13/02/2014 00:19, Chris Holland wrote:
> Just found a problem with this code, it doesn't work when the
> compression is turned on.
>
> Chris Holland
> [Team Elevate]
>
> On 13/02/2014 00:01, Chris Holland wrote:
>> Okay, I have taken Tim's advice and modified the code so I pass in the
>> date scroller as a TPaint object and extract the canvas in the external
>> javascript file using
>>
>> PassedInPaintObject.tpaint_fcanvas.tcanvas_fcanvas;
>>
>> This means that I do not need to modify the existing framework.
>>
>> Thanks Tim.
>>
>> Chris Holland
>> [Team Elevate]
>>
>> On 12/02/2014 13:47, Tim Young [Elevate Software] wrote:
>>> Matthew,
>>>
>>> << I think I have to modify the Display option each update too.
>>>
>>> It would be good to enable some option where you have InternalCanvas and
>>> InternalDisplay properties that perhaps always return nil, unless you
>>> have called a function that accepts we take responsibility. If we send
>>> you code that has that enabled, turn us away. But by having a nil return
>>> we can actually code for it, and test where the problem is. >>
>>>
>>> I'm sorry, but this won't be changing.  If you want direct access to the
>>> element, you can get it (DOM tree), but I'm not going to make it easy to
>>> do directly because it is way too easy to just drop down and start
>>> modifying the element attributes without realizing how it affects the
>>> behavior of the framework.  The end result is more of my time figuring
>>> out and then explaining why something is broken in the framework.  I
>>> break enough of the framework on my own, and I wrote the damn thing. Smile
>>>
>>> Tim Young
>>> Elevate Software
>>> www.elevatesoft.com
Thu, Feb 13 2014 8:51 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< Okay, I have add to add a test to see if the compression is turned on and
the name changes to: >>

The name can literally be *anything* with compression turned on, and will
change as the EWB framework/your application code changes.  The compression
is *dynamic*, and automatically adapts to the usage of literals in the
application.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Feb 13 2014 9:44 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

So how do I find the ID of the TPaint component with compression turned on.

I can do a getElementById(MyPaint.tcomponent_fname) when the compression
is turned off.

Chris Holland
[Team Elevate]

On 13/02/2014 13:51, Tim Young [Elevate Software] wrote:
> Chris,
>
> << Okay, I have add to add a test to see if the compression is turned on
> and the name changes to: >>
>
> The name can literally be *anything* with compression turned on, and
> will change as the EWB framework/your application code changes.  The
> compression is *dynamic*, and automatically adapts to the usage of
> literals in the application.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
Fri, Feb 14 2014 4:51 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

I have got around this for the moment by passing in the TPaint object
name as a string and doing the following:

var p = document.getElementById(paint1Name);
   if(p != null)
   {
      var pc = p.firstChild;
      var pcc = pc.getContext("2d");
      pcc.fillText("Test",10,10);
   }
   else
      alert("p = NULL");

Is there a way where I can pass in the TPaint as an Object and read the
id from that object?

Also is it safe to assume that the FirstChild of a TPaint object is
always the TCanvas?

Chris Holland
[Team Elevate]

On 13/02/2014 14:44, Chris Holland wrote:
> So how do I find the ID of the TPaint component with compression turned on.
>
> I can do a getElementById(MyPaint.tcomponent_fname) when the compression
> is turned off.
>
> Chris Holland
> [Team Elevate]
>
> On 13/02/2014 13:51, Tim Young [Elevate Software] wrote:
>> Chris,
>>
>> << Okay, I have add to add a test to see if the compression is turned on
>> and the name changes to: >>
>>
>> The name can literally be *anything* with compression turned on, and
>> will change as the EWB framework/your application code changes.  The
>> compression is *dynamic*, and automatically adapts to the usage of
>> literals in the application.
>>
>> Tim Young
>> Elevate Software
>> www.elevatesoft.com
Fri, Feb 14 2014 9:00 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< I have got around this for the moment by passing in the TPaint object
name as a string and doing the following: >>

That's about the only way that you can do it safely.

<< Is there a way where I can pass in the TPaint as an Object and read the
id from that object? >>

You'll run into the same identifier issue with compression.

The main issue is that you're mixing some of the presentation parts of the
EWB framework with external JavaScript, and that's going to always be
difficult without using a descendant class that has direct access to the DOM
elements used.  This will become easier in EWB 2.0, since then you'll be
able to use such descendant classes in the IDE.

<< Also is it safe to assume that the FirstChild of a TPaint object is
always the TCanvas? >>

Yes.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Feb 14 2014 3:27 PMPermanent Link

aberas

Tim:

Do you have an aproximate date on the 2.0 release?

TIA
Fri, Feb 14 2014 6:32 PMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

okay, no problem i can live with passing in the name of the scroller.
look forward to version 2, if you need a beta tester for v2 i am pretty
good at breaking most things 《g》

Chris Holland
[Team Elevate]

On 14/02/2014 14:00, Tim Young [Elevate Software] wrote:
> Chris,
>
> << I have got around this for the moment by passing in the TPaint object
> name as a string and doing the following: >>
>
> That's about the only way that you can do it safely.
>
> << Is there a way where I can pass in the TPaint as an Object and read
> the id from that object? >>
>
> You'll run into the same identifier issue with compression.
>
> The main issue is that you're mixing some of the presentation parts of
> the EWB framework with external JavaScript, and that's going to always
> be difficult without using a descendant class that has direct access to
> the DOM elements used.  This will become easier in EWB 2.0, since then
> you'll be able to use such descendant classes in the IDE.
>
> << Also is it safe to assume that the FirstChild of a TPaint object is
> always the TCanvas? >>
>
> Yes.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
Tue, Feb 18 2014 11:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Do you have an aproximate date on the 2.0 release? >>

No.  I'm way behind now, due to our web server migration and EDB 2.15 taking
longer than expected, so I'm not going to even attempt a guess until I get
closer to being done.

Tim Young
Elevate Software
www.elevatesoft.com


Thu, Feb 20 2014 1:44 PMPermanent Link

aberas

Im very, very very sad right now Frown

"Tim Young [Elevate Software]" wrote:


<< Do you have an aproximate date on the 2.0 release? >>

No.  I'm way behind now, due to our web server migration and EDB 2.15 taking
longer than expected, so I'm not going to even attempt a guess until I get
closer to being done.

Tim Young
Elevate Software
www.elevatesoft.com


Previous PagePage 2 of 2
Jump to Page:  1 2
Image