I'm going to toss something out and am more than ready to be shot down and
told that I'm wrong. And maybe I am, but I'm kind of curious to learn more.

Subforms are not a feature that I've looked into in detail, so I'm pretty
ignorant about them. So know that first.

But second, there's a *reason* I haven't looked into them. When first
introduced, they were barely documented and almost never discussed. It
seemed like a feature that had been added for Miyako ;-) Well, he's earned
at least a few custom features, so fine.

Now it seems that they've gotten a bit more love and documentation, but
they're still not much used and there are a bunch of brick walls that you
can run into without any real escape options. It also still has the smell
to me of a feature that isn't necessarily going to evolve much. We see a
lot of features introduced in 4D over the years that could benefit from
updates and new options. Some get them, some don't. There's no way to
predict, nor is their a roadmap we can go by or any way that I've ever
heard of to know how 4D makes their decisions about what to focus on. So,
all we have is what we have today. If subforms work well for what you need,
why not use them? Sounds great. If they don't do something you need, they
*might* improve later...they might not. There's just no way to know.

If that's right (or roughly right), there' might be a solid alternative
strategy:

  Web Area + JS GUI toolset

Also a bunch of work but, if running successfully, pretty much unlimited in
what kind of UI you can present and what it looks like.

This second strategy isn't super widespread, or at least that's my
impression...but several people have been doing it for years with great
results. (Steve Orth did a best-in-show presentation on this some Summit's
back, for example.)

Am I completely off base here? 80%? 10% Again, I'm pretty ignorant so I'm
hopeful that people that know a lot about these options can offer some
experience-based coments.


On Mon, Sep 11, 2017 at 1:30 PM, Leonard Soloniuk via 4D_Tech <
[email protected]> wrote:

> Is there a way to trigger resizing of objects in a subform so it is done
> automatically?
>
> I realize that it is possible to:
>
> 1) call a method in the subform’s context (EXECUTE METHOD IN SUBFORM)
> that...
> 2) uses OBJECT GET SUBFORM CONTAINER SIZE to obtain the subform size, and
> ...
> 3) uses FORM GET OBJECTS to get all the objects on the form, and for each
> object...
> 4) call OBJECT GET RESIZING OPTIONS for each object, then...
> 5) use OBJECT SET COORDINATES to resize each object,
>
> … but there seems that there would be a better way of doing this. Any
> suggestions?
>
**********************************************************************
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:[email protected]
**********************************************************************

Reply via email to