Re: Widget performance

2017-09-01 Thread Keisuke Miyako via 4D_Tech
Hello,

that widget is one of my own favourites,
especially how it manages focus with gaussian blur.

you might want to make sure your images are Retina ready on v14 or above,
but otherwise not much has changes since v13 (which added OBJECT GET SUBFORM 
CONTAINER SIZE and FORM GOTO PAGE *)

http://doc.4d.com/4Dv15/4D/15.4/OBJECT-GET-SUBFORM-CONTAINER-SIZE.301-3273878.en.html
http://doc.4d.com/4Dv15/4D/15.4/FORM-GOTO-PAGE.301-3274377.en.html

> 2017/08/31 16:03、Piotr Chabot Stadhouders  のメール:
>
> https://github.com/miyako/4d-widget-custom-picture-button/wiki
>
> I must say I really like what you have done, and the source code is really 
> helpful understanding how to implement widgets.
> I would advise everybody to have a look at this widget, and others, you have 
> created.
>
> These widgets most of the time are created with 4D v14.
> Would you do (some) things differently when using v16?




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

RE: Widget performance

2017-08-31 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako,

Searching for some tips about widgets (subforms) and handling focus, setting 
disabled, etc. I found this link on the iNUG:
https://github.com/miyako/4d-widget-custom-picture-button/wiki

I must say I really like what you have done, and the source code is really 
helpful understanding how to implement widgets.
I would advise everybody to have a look at this widget, and others, you have 
created.

These widgets most of the time are created with 4D v14.
Would you do (some) things differently when using v16?

Thanks,

Piotr

> -Oorspronkelijk bericht-
> Van: Keisuke Miyako [mailto:keisuke.miy...@4d.com]
> Verzonden: zaterdag 26 augustus 2017 0:32
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Widget performance
> 
> there is a "duplicate by matrix" menu in the form editor, which allows you to
> quickly experiment with tens of thousands of objects.
> maybe it is the execution code setup code that is taking 2 seconds.
> 
> in my experience, a form with thousands of form objects is nothing
> uncommon.
> 
> > 2017/08/25 16:39、Piotr Chabot Stadhouders via 4D_Tech
> > <4d_tech@lists.4d.com> のメール:
> > Opening the form compiled on a quite fast Windows laptop took about 2
> seconds.
> 
> 
> 

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

RE: Widget performance

2017-08-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Thanks Miyako and Jody,

The thing I most worry about is the performance overhead of subforms.
I would suspect a subform is "heavier" than a simple field or button for 
example.

Can someone tell me what the subform performance overhead is?
After all, when inserting 100 widget I am in fact inserting 100 subforms.

Gr,

Piotr



> -Oorspronkelijk bericht-
> Van: Piotr Chabot Stadhouders [mailto:p.stadhoud...@timeff.com]
> Verzonden: vrijdag 25 augustus 2017 9:40
> Aan: 4d_tech@lists.4d.com
> Onderwerp: Widget performance
> 
> Hi,
> 
> 4D v16, Windows 10
> 
> Despite all advice saying to use standard 4D objects, I am on the verge of
> creating my own dropdown menu.
> We have a multi-platform application and want to have its own unique L
> 
> I think I can create a dropdown as a widget, but what I am worried about is
> performance As a test I have created a form with 100 Date entry Widgets on
> it Opening the form compiled on a quite fast Windows laptop took about 2
> seconds.
> 
> I am not saying that I am going to create forms with 100 dropdowns on it, but
> it worries me.
> Does anybody else have experience with the use of a lot of widgets on a
> form?
> 
> Gr,
> 
> Piotr
> 

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

Re: Widget performance

2017-08-25 Thread Jody Bevan via 4D_Tech
Maybe 4D does not need what we do anymore, but old habits die hard.

When we have multiple pages we split the code for setting up all the objects on 
the form into ‘Page_Methods”. The specific page methods are only run the first 
time the user clicks to go to that page. That way it usually makes the code 
base small enough that the users do not know that we are doing this. It avoids 
the big load at the front end of loading the form. 

Back in the v3.5 days I saw 4D take 6 minutes to load a form because of this 
issue. The staff at this company were saying it is 4D’s fault. I took 10 
minutes split it into pages and now the first page loaded up in under a second. 
Each page after that was a second (and that was uncompiled). Sometimes we just 
need to look at the problem from a different angle.

- just another old timer trick

Jody Bevan
ARGUS Productions Inc.
Developer

Argus Productions Inc. 




> On Aug 25, 2017, at 4:31 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> there is a "duplicate by matrix" menu in the form editor,
> which allows you to quickly experiment with tens of thousands of objects.
> maybe it is the execution code setup code that is taking 2 seconds.
> 
> in my experience, a form with thousands of form objects is nothing uncommon.
> 
>> 2017/08/25 16:39、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> 
>> のメール:
>> Opening the form compiled on a quite fast Windows laptop took about 2 
>> seconds.
> 

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

Re: Widget performance

2017-08-25 Thread Keisuke Miyako via 4D_Tech
there is a "duplicate by matrix" menu in the form editor,
which allows you to quickly experiment with tens of thousands of objects.
maybe it is the execution code setup code that is taking 2 seconds.

in my experience, a form with thousands of form objects is nothing uncommon.

> 2017/08/25 16:39、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> Opening the form compiled on a quite fast Windows laptop took about 2 seconds.




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