Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Just got my EWB - first test project - Kindle problem?
Thu, Sep 20 2012 6:25 PMPermanent Link

Eric Schwarz

Avatar

Hi folks,

Just put together my first app, something simple with a grid displaying master records and a double-click path to a modal form for the detail records.  Using PHP/MySQL for the backend, but that's besides the point.

Works great on my desktop/FireFox setup.  For grins tried it on a Kindle Fire HD.  Looks ok, buttons work, but cannot for the life of me get a double-click response from Kindle on the main screen.  It's almost as if the Kindle browser is incapable of doing a double-click.  Thoughts?

Eric Schwarz
Thu, Sep 20 2012 10:28 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate


I would have been surprised if this would have worked - double click is
very PC based action and likely is either not supported (at hardware
level) or used already for some other purpose (mobile safari on
ipad/iphone uses it to zoom in/out).

Using something like long press might be a way to go on mobile but i ran
a quick test and at least on ipad the mouse down/up is not detected
separately so Tim might need to take a look and add specific support for
this in EWB (either a long press event or ability to detect discrete
mouse down and mouse up on mobile devices).

Raul




On 9/20/2012 6:25 PM, Eric Schwarz wrote:
> Hi folks,
>
> Just put together my first app, something simple with a grid displaying master records and a double-click path to a modal form for the detail records.  Using PHP/MySQL for the backend, but that's besides the point.
>
> Works great on my desktop/FireFox setup.  For grins tried it on a Kindle Fire HD.  Looks ok, buttons work, but cannot for the life of me get a double-click response from Kindle on the main screen.  It's almost as if the Kindle browser is incapable of doing a double-click.  Thoughts?
>
> Eric Schwarz
>
Fri, Sep 21 2012 4:26 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Eric


I'm with Raul on this one. I haven't started playing with EWB yet but I do know that nothing on my tablet supports a double click its all either single click or long click.

Roy Lambert
Fri, Sep 21 2012 6:18 AMPermanent Link

Uli Becker

Eric,

I tested my first application on an iPad, and like expected a double
click does not work the same way it works in a desktop application.

You have either to use buttons, single clicks or even different versions
of your application for pads.

Uli
Fri, Sep 21 2012 10:22 AMPermanent Link

Eric Schwarz

Avatar

Thanks for the replies, sort of what I suspected.  I have since added a button to open the currently selected grid line, but it's kinda clunky that way.  Is there a way to detect what browser you're on in EWB?

Eric Schwarz
Fri, Sep 21 2012 12:13 PMPermanent Link

Uli Becker

Eric,

> Is there a way to detect what browser you're on in EWB?

Yes, the WEBDOM unit contains external interfaces and helper functions.
Have a look there.

To detect the browser, use:

Window.Navigator.appname

Include WebDom in the uses clause of your form.

Uli
Sat, Sep 22 2012 9:50 AMPermanent Link

Kevin P.

Eric.

Please change your +750kb forum avatar.  I don't need to be downloading MBs of data when trying to read every threads in which you have posted.

Thanks,

Kevin P.
Sat, Sep 22 2012 1:27 PMPermanent Link

Eric Schwarz

Avatar

Oops!  Grabbed the wrong file, sorry!
Eric Schwarz
Mon, Sep 24 2012 12:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eric,

<< Thanks for the replies, sort of what I suspected.  I have since added a
button to open the currently selected grid line, but it's kinda clunky that
way.  Is there a way to detect what browser you're on in EWB? >>

1.01 (not released yet) includes these TApplication properties:

        property IsIOS: Boolean read GetIsIOS;
        property IsAndroid: Boolean read GetIsAndroid;

However, you can do the same thing with these functions:

uses WebDOM;

function IsPlatformIOS: Boolean;
var
  TempPlatform: String;
begin
  TempPlatform:=LowerCase(window.navigator.platform);
  Result:=(Pos('iphone',TempPlatform) > 0) or
          (Pos('ipod',TempPlatform) > 0) or
          (Pos('ipad',TempPlatform) > 0);
end;

function IsPlatformAndroid: Boolean;
var
  TempPlatform: String;
begin
  TempPlatform:=LowerCase(window.navigator.platform);
  Result:=(Pos('android',TempPlatform) > 0);
end;

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com

Image