Re: Socket Communication

2019-01-21 Thread spiffyguy via 4D_Tech
Hi Steve,

I have been working with WebSockets on a component I wrote for 4D.  I love
web sockets over long-polling.

I designed and created a component that can just be dropped into any
database.  I am planning on demo-ing the component with examples on 4DMethod
but figuring out the right date.  As soon as it's confirmed with Brent, I
will let you know if you want to tune in for that presentation.

I use web sockets for a number of things... like syncing data easily between
many web views and for keeping track of some iPads that should be always on. 
As soon as they get powered off, the 4D Server instantly knows and sends a
message to the employees affected.  I also use them in a mobile app I
designed to skip Apple Push Notifications and Google Firebase Notifications
if the app is open.  If it's open I can push a message directly to the app
and skip the middle man.  I also wrote an app that pops up a camera from a
zoneminder when motion is detected, works pretty well for my employer's
need.

- Matt




--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Douglas von Roeder via 4D_Tech
Olivier:

Thank you for the suggestion. I've done some interesting things with ALP so
a one row grid is certainly an option. Plain text would not give me the UI
I want but, per your suggestion,  using an image will provide a more
attractive interface.

And thank you for the link to your toolkit. It looks quite helpful!
--
Douglas von Roeder
949-336-2902


On Mon, Jan 21, 2019 at 11:51 AM Olivier Flury via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Maybe as an alternative to SVG a Listbox with one row and no header and
> use the cell's as tab controls? You can detect single/double/context click,
> can put images, set colour, font style/size/colour insert and delete
> columns...
>
> Listboxes are very versatile, I used them to create a custom colour
> picker, a calendar picker and many other things, e.g.:
>
> https://flury-software.ch/a-swiss-army-knife-for-4d/
>
> (free and source included)
>
> -Ursprüngliche Nachricht-
> Von: 4D_Tech <4d_tech-boun...@lists.4d.com> Im Auftrag von Douglas von
> Roeder via 4D_Tech
> Gesendet: Montag, 21. Januar 2019 18:45
> An: 4D iNug Technical <4d_tech@lists.4d.com>
> Cc: Douglas von Roeder 
> Betreff: Re: How to Create a Browser-Like Tabbed Interface
>
> Keith:
>
> Thanks for the reply.
>
> The issue in 4D (which I should have explained) is that, since 4D doesn't
> report a click, I can't trap for the contextual click.
>
> "SVG pictures offer a good way to see clicks.  You'll always get an
> object's ID, and you can put almost anything in the picture."
> Agreed, but I'd rather avoid rolling my own — I'm a believer in the idea
> that "someone, somewhere has solved this issue so there's a solution out
> there".
> I've also looked into using a button grid + graphic (not very
> aesthetic) and there's always using On event call to trap the mouse
> clicks, but that could present problems because resizing the tab control
> could make the coordinates of each tab hard to determine.
>
> And I did check to see if Miyako had done something magical to solve this
> problem but no joy there.
>
> --
> Douglas von Roeder
> 949-336-2902
>
>
> On Mon, Jan 21, 2019 at 9:11 AM Keith Culotta via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > A tab control will not report a click when the click is on the current
> > tab "page", but Safari seems to work that way too (no reaction to a
> > click on the current page's tab).  Clicking another of the tab's areas
> > will generate a click.
> >
> > SVG pictures offer a good way to see clicks.  You'll always get an
> > object's ID, and you can put almost anything in the picture.
> >
> > Keith - CDI
> >
> > > On Jan 21, 2019, at 10:51 AM, Douglas von Roeder via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> > >
> > > I'd like to create an interface that mimics the functionality and
> > > appearance of the tab control in Chrome or Safari.
> > >
> > > Given the functionality of the 4D tab control (once a tab is
> > > clicked, it
> > no
> > > longer reports mouse clicks) what are my options for building a
> > > highly functional, tabbed UI?
> > >
> > > --
> > > Douglas von Roeder
> > > 949-336-2902
> >
> > **
> > 4D Internet Users Group (4D iNUG)
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

AW: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Olivier Flury via 4D_Tech
Maybe as an alternative to SVG a Listbox with one row and no header and use the 
cell's as tab controls? You can detect single/double/context click, can put 
images, set colour, font style/size/colour insert and delete columns...

Listboxes are very versatile, I used them to create a custom colour picker, a 
calendar picker and many other things, e.g.:

https://flury-software.ch/a-swiss-army-knife-for-4d/

(free and source included)

-Ursprüngliche Nachricht-
Von: 4D_Tech <4d_tech-boun...@lists.4d.com> Im Auftrag von Douglas von Roeder 
via 4D_Tech
Gesendet: Montag, 21. Januar 2019 18:45
An: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Douglas von Roeder 
Betreff: Re: How to Create a Browser-Like Tabbed Interface

Keith:

Thanks for the reply.

The issue in 4D (which I should have explained) is that, since 4D doesn't 
report a click, I can't trap for the contextual click.

"SVG pictures offer a good way to see clicks.  You'll always get an object's 
ID, and you can put almost anything in the picture."
Agreed, but I'd rather avoid rolling my own — I'm a believer in the idea that 
"someone, somewhere has solved this issue so there's a solution out there".
I've also looked into using a button grid + graphic (not very
aesthetic) and there's always using On event call to trap the mouse clicks, but 
that could present problems because resizing the tab control could make the 
coordinates of each tab hard to determine.

And I did check to see if Miyako had done something magical to solve this 
problem but no joy there.

--
Douglas von Roeder
949-336-2902


On Mon, Jan 21, 2019 at 9:11 AM Keith Culotta via 4D_Tech < 
4d_tech@lists.4d.com> wrote:

> A tab control will not report a click when the click is on the current 
> tab "page", but Safari seems to work that way too (no reaction to a 
> click on the current page's tab).  Clicking another of the tab's areas 
> will generate a click.
>
> SVG pictures offer a good way to see clicks.  You'll always get an 
> object's ID, and you can put almost anything in the picture.
>
> Keith - CDI
>
> > On Jan 21, 2019, at 10:51 AM, Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I'd like to create an interface that mimics the functionality and 
> > appearance of the tab control in Chrome or Safari.
> >
> > Given the functionality of the 4D tab control (once a tab is 
> > clicked, it
> no
> > longer reports mouse clicks) what are my options for building a 
> > highly functional, tabbed UI?
> >
> > --
> > Douglas von Roeder
> > 949-336-2902
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Jim Dorrance via 4D_Tech
I do this sort of thing with SVG often for clients. Contact me in private
if you like.
-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Douglas von Roeder via 4D_Tech
Keith:

Thanks for the reply.

The issue in 4D (which I should have explained) is that, since 4D doesn't
report a click, I can't trap for the contextual click.

"SVG pictures offer a good way to see clicks.  You'll always get an
object's ID, and you can put almost anything in the picture."
Agreed, but I'd rather avoid rolling my own — I'm a believer in the idea
that "someone, somewhere has solved this issue so there's a solution out
there".
I've also looked into using a button grid + graphic (not very
aesthetic) and there's always using On event call to trap the mouse clicks,
but that could present problems because resizing the tab control could make
the coordinates of each tab hard to determine.

And I did check to see if Miyako had done something magical to solve this
problem but no joy there.

--
Douglas von Roeder
949-336-2902


On Mon, Jan 21, 2019 at 9:11 AM Keith Culotta via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> A tab control will not report a click when the click is on the current tab
> "page", but Safari seems to work that way too (no reaction to a click on
> the current page's tab).  Clicking another of the tab's areas will generate
> a click.
>
> SVG pictures offer a good way to see clicks.  You'll always get an
> object's ID, and you can put almost anything in the picture.
>
> Keith - CDI
>
> > On Jan 21, 2019, at 10:51 AM, Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > I'd like to create an interface that mimics the functionality and
> > appearance of the tab control in Chrome or Safari.
> >
> > Given the functionality of the 4D tab control (once a tab is clicked, it
> no
> > longer reports mouse clicks) what are my options for building a highly
> > functional, tabbed UI?
> >
> > --
> > Douglas von Roeder
> > 949-336-2902
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Keith Culotta via 4D_Tech
A tab control will not report a click when the click is on the current tab 
"page", but Safari seems to work that way too (no reaction to a click on the 
current page's tab).  Clicking another of the tab's areas will generate a click.

SVG pictures offer a good way to see clicks.  You'll always get an object's ID, 
and you can put almost anything in the picture.

Keith - CDI

> On Jan 21, 2019, at 10:51 AM, Douglas von Roeder via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I'd like to create an interface that mimics the functionality and
> appearance of the tab control in Chrome or Safari.
> 
> Given the functionality of the 4D tab control (once a tab is clicked, it no
> longer reports mouse clicks) what are my options for building a highly
> functional, tabbed UI?
> 
> --
> Douglas von Roeder
> 949-336-2902

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

How to Create a Browser-Like Tabbed Interface

2019-01-21 Thread Douglas von Roeder via 4D_Tech
I'd like to create an interface that mimics the functionality and
appearance of the tab control in Chrome or Safari.

Given the functionality of the 4D tab control (once a tab is clicked, it no
longer reports mouse clicks) what are my options for building a highly
functional, tabbed UI?

--
Douglas von Roeder
949-336-2902
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Apple Push Notification Servers (APNS)

2019-01-21 Thread spiffyguy via 4D_Tech
Hi Tom,

That is currently correct that 4D requests don't currently support http/2
request.  But there is a curl plugin by Miyako that supports curl calls with
http/2 right from 4D.

https://github.com/miyako/4d-plugin-curl-http

Scroll down to the very bottom of the readme and you will see an example of
a http/2 request.

- Matt




--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**