RE: Another splitter question

2019-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk,

Yes, I already was afraid this would be the final conclusion☹

I know I can set splitter_2 and listbox_2 and listbox_3 by setting the 
coordinates of the objects while moving splitter_1 (in on clicked event)
I also know I can assign a value to splitter_2 and then the other objects react 
on this assignment while moving splitter_1 (in on clicked)

My problem with this is that I find it to be not very intuitive
I get all kinds of unexpected sizing and moving of the objects

Gr,
Piotr

Van: Kirk Brooks 
Verzonden: Thursday, 26 September 2019 15:39
Aan: Piotr Chabot Stadhouders 
Onderwerp: Re: Another splitter question

Piotr,
On Thu, Sep 26, 2019 at 12:57 AM Piotr Chabot Stadhouders 
mailto:p.stadhoud...@timeff.com>> wrote:
However, in this case what I want is :
- when I move splitter_1 I want listbox_2 and splitter_2 to MOVE and listbox_3 
to resize
- when I move splitter_2 I want listbox_2 and listbox_3 to resize

I don't think 4D will do that natively. When you move splitter 1 it causes 
listbox 2 to resize but the resize 'flag' (no idea if that's the actual 
mechanism) is not passed on to splitter 2 or listbox 3. So it only affects 
listbox 2.

Conversely when you resize the form itself, making it larger for example, only 
listbox 3 is affected.

What you want would be a sort of auto-distribute resize option. That's 
something different and more complicated. If this is a super critical feature 
you simply must have I think you will need to manage it yourself using the On 
resize form event. I've done that sort of thing a couple of times. It's tedious 
but possible. If the number of items is not great, and it sounds like it's not, 
the performance is not affected too much.
--
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

Wittgenstein and the Computer
**
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: Another splitter question

2019-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk,

Thanks for your answer.

The way you describe the properties is the way I set them, and then listbox_2 
is resized when splitter_1 is moved. (Pusher property is off)
This most of the time is the wanted behavior.
However, in this case what I want is :
- when I move splitter_1 I want listbox_2 and splitter_2 to MOVE and listbox_3 
to resize
- when I move splitter_2 I want listbox_2 and listbox_3 to resize

Gr,
Piotr

-Oorspronkelijk bericht-
Van: Kirk Brooks  
Verzonden: Wednesday, 25 September 2019 17:18 
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
Onderwerp: Re: Another splitter question

Piotr,

listbox_1  |  listbox_2  |  listbox_3

listbox_1:  horizontal resize = grow; vertical resize= grow (I assume)
splitter_1:  horizontal resize = none; vertical resize= grow
listbox_2:  horizontal resize = grow; vertical resize= grow
splitter_2: horizontal resize = none; vertical resize= grow
listbox_3: horizontal resize = grow; vertical resize= grow

Notes:

Be sure the splitters start before the top of the listbox and end after the 
listbox. It won't work if the splitters are not longer, at least by a pix on 
each end. At least in my experience.

You won't be able to size the listbox smaller than the layout in the form 
editor.




On Wed, Sep 25, 2019 at 1:05 AM Piotr Chabot Stadhouders via 4D_Tech < 
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I have a form with three listboxes on it, with in between 2 vertical 
> splitters
>
> I want to accomplish the following, preferably only by setting object 
> properties :
> When I move the left splitter the left listbox must size, the middle 
> listbox + right splitter must move, and the right listbox must size 
> When I move the right splitter the middle and right listbox must size 
> (the left splitter + listbox must stay as is)
>
> I am having troubles to find a (good) way to accomplish this
>
> Anybody any tips?
>
> Gr,
> Piotr
>
> **
> 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
> **



--
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *

**
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: Another splitter question

2019-09-25 Thread Kirk Brooks via 4D_Tech
Piotr,

listbox_1  |  listbox_2  |  listbox_3

listbox_1:  horizontal resize = grow; vertical resize= grow (I assume)
splitter_1:  horizontal resize = none; vertical resize= grow
listbox_2:  horizontal resize = grow; vertical resize= grow
splitter_2: horizontal resize = none; vertical resize= grow
listbox_3: horizontal resize = grow; vertical resize= grow

Notes:

Be sure the splitters start before the top of the listbox and end after the
listbox. It won't work if the splitters are not longer, at least by a pix
on each end. At least in my experience.

You won't be able to size the listbox smaller than the layout in the form
editor.




On Wed, Sep 25, 2019 at 1:05 AM Piotr Chabot Stadhouders via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I have a form with three listboxes on it, with in between 2 vertical
> splitters
>
> I want to accomplish the following, preferably only by setting object
> properties :
> When I move the left splitter the left listbox must size, the middle
> listbox + right splitter must move, and the right listbox must size
> When I move the right splitter the middle and right listbox must size (the
> left splitter + listbox must stay as is)
>
> I am having troubles to find a (good) way to accomplish this
>
> Anybody any tips?
>
> Gr,
> Piotr
>
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
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
**

Another splitter question

2019-09-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

I have a form with three listboxes on it, with in between 2 vertical splitters

I want to accomplish the following, preferably only by setting object 
properties :
When I move the left splitter the left listbox must size, the middle listbox + 
right splitter must move, and the right listbox must size
When I move the right splitter the middle and right listbox must size (the left 
splitter + listbox must stay as is)

I am having troubles to find a (good) way to accomplish this

Anybody any tips?

Gr,
Piotr

**
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
**