Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 19 total
Thread Date Scroller (Like Smartphone)
Tue, Feb 11 2014 4:26 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

I have posted a small bit of code in the demos newsgroup for a small
addition to EWB that allows you to set a date using scrolling wheels
like a smartphone. Feel free to use or add to and enhance.

--
Chris Holland
[Team Elevate]
Tue, Feb 11 2014 6:18 AMPermanent Link

Walter Matte

Tactical Business Corporation

Chris

Is there something else we need to do you run this Date Scroller?

Compiler doesn't like YearScroller.Canvas.Canvas  Referenced variable, parameter or function Canvas does not exist.


initDateScroller(YearScroller.Canvas.Canvas, MonthScroller.Canvas.Canvas, DayScroller.Canvas.Canvas, HourScroller.Canvas.Canvas,MinuteScroller.Canvas.Canvas,Year,Month,Day,Hour,Minute);


Is there a change to TPaint that needs to be done?

Walter
Tue, Feb 11 2014 7:37 AMPermanent Link

Rick

On 11/02/14 22:18, Walter Matte wrote:
> Is there something else we need to do you run this Date Scroller?
>

Maybe html5 support needs to be activated for the project?


--
Rick
Tue, Feb 11 2014 7:50 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Sorry , forgot to mention that I had to edit the WebCtrls file in the
framework source to make the "Canvas" field under the TCanvas class a
public field.

Chris Holland
[Team Elevate]

On 11/02/2014 11:18, Walter Matte wrote:
> Chris
>
> Is there something else we need to do you run this Date Scroller?
>
> Compiler doesn't like YearScroller.Canvas.Canvas  Referenced variable, parameter or function Canvas does not exist.
>
>
>   initDateScroller(YearScroller.Canvas.Canvas, MonthScroller.Canvas.Canvas, DayScroller.Canvas.Canvas, HourScroller.Canvas.Canvas,MinuteScroller.Canvas.Canvas,Year,Month,Day,Hour,Minute);
>
>
> Is there a change to TPaint that needs to be done?
>
> Walter
>
Tue, Feb 11 2014 7:51 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Any chance of doing this to the original source Tim, as I have to do
this to use the date scroller and the signature capture that I wrote.

Chris Holland
[Team Elevate]

On 11/02/2014 12:50, Chris Holland wrote:
> Sorry , forgot to mention that I had to edit the WebCtrls file in the
> framework source to make the "Canvas" field under the TCanvas class a
> public field.
>
> Chris Holland
> [Team Elevate]
>
> On 11/02/2014 11:18, Walter Matte wrote:
>> Chris
>>
>> Is there something else we need to do you run this Date Scroller?
>>
>> Compiler doesn't like YearScroller.Canvas.Canvas  Referenced variable,
>> parameter or function Canvas does not exist.
>>
>>
>>   initDateScroller(YearScroller.Canvas.Canvas,
>> MonthScroller.Canvas.Canvas, DayScroller.Canvas.Canvas,
>> HourScroller.Canvas.Canvas,MinuteScroller.Canvas.Canvas,Year,Month,Day,Hour,Minute);
>>
>>
>>
>> Is there a change to TPaint that needs to be done?
>>
>> Walter
>>
Tue, Feb 11 2014 10:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< Any chance of doing this to the original source Tim, as I have to do this
to use the date scroller and the signature capture that I wrote. >>

No, the controls/components in EWB do not expose the underlying DOM
elements, as a general rule.  This leads to some really bad coding issues
when direct modifications aren't reflected in the wrappers, or vice-versa.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Feb 11 2014 11:28 AMPermanent Link

Matthew Jones

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.

Just a thought.

/Matthew Jones/
Wed, Feb 12 2014 8:47 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

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
Wed, Feb 12 2014 7:01 PMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

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
Wed, Feb 12 2014 7:19 PMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

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
Page 1 of 2Next Page »
Jump to Page:  1 2
Image