RE: Form with Custom Grow Box

2017-09-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Cannon,

Thanks for the reply, I am certainly going to try it!

Do you perhaps know if there is a way to open a Movable form dialog box without 
title bar?
Because I didn't find how to do that, I want to create the grow box on a Modal 
form dialog box

Or is the reason you know how to create a custom grow box exactly for this 
reason?

Gr,

Piotr

> -Oorspronkelijk bericht-
> Van: Cannon Smith [mailto:can...@synergyfarmsolutions.com]
> Verzonden: dinsdag 19 september 2017 18:10
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Form with Custom Grow Box
> 
> Here is a way for doing that:
> 
> 1. Create a picture that looks like a window grabber and place it in the 
> bottom
> right of the form. Put an invisible button over top of it.
> 
> 2. In the invisible button, capture On Mouse Move and use "SET
> CURSOR(9005)” to change the mouse cursor to a resize icon.
> 
> 3. In the On Clicked event of the invisible button, capture the mouse position
> (GET MOUSE) and window position and size (GET WINDOW RECT) and store
> that information somewhere (probably process variables). Then start timer
> (every 1 ticks works fine).
> 
> 4. Every time the timer runs, capture the current mouse position and
> compute the difference from the original position. From this you can figure
> out how large the window should be at the moment and you can change it
> using SET WINDOW RECT. You should also check to see if the mouse button
> has been released (GET MOUSE) and stop the timer if it has. In the timer you
> can do the math to make sure the window doesn’t get too small, etc. as well.
> 
> HTH.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <can...@synergyfarmsolutions.com>
> 
> 
> 
> > On Sep 19, 2017, at 9:51 AM, Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
> >
> > What I am actually want to do is create a form window without title bar, but
> that still is resizable.
> > Is there someone that knows how to accomplish this?
> 

**
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: Form with Custom Grow Box

2017-09-19 Thread Cannon Smith via 4D_Tech
Here is a way for doing that:

1. Create a picture that looks like a window grabber and place it in the bottom 
right of the form. Put an invisible button over top of it.

2. In the invisible button, capture On Mouse Move and use "SET CURSOR(9005)” to 
change the mouse cursor to a resize icon.

3. In the On Clicked event of the invisible button, capture the mouse position 
(GET MOUSE) and window position and size (GET WINDOW RECT) and store that 
information somewhere (probably process variables). Then start timer (every 1 
ticks works fine).

4. Every time the timer runs, capture the current mouse position and compute 
the difference from the original position. From this you can figure out how 
large the window should be at the moment and you can change it using SET WINDOW 
RECT. You should also check to see if the mouse button has been released (GET 
MOUSE) and stop the timer if it has. In the timer you can do the math to make 
sure the window doesn’t get too small, etc. as well.

HTH.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Sep 19, 2017, at 9:51 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> What I am actually want to do is create a form window without title bar, but 
> that still is resizable.
> Is there someone that knows how to accomplish this?

**
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: Form with Custom Grow Box

2017-09-19 Thread Piotr Chabot Stadhouders via 4D_Tech
@chip : Thanks for the suggestion, I will try this

@Miyako : Ok, then the question is : Is there a way to mimic this behavior?

What I am actually want to do is create a form window without title bar, but 
that still is resizable.
Is there someone that knows how to accomplish this?

Thanks,

Piotr

> -Oorspronkelijk bericht-
> Van: Chip Scheide [mailto:4d_o...@pghrepository.org]
> Verzonden: dinsdag 19 september 2017 15:59
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> CC: Piotr Chabot Stadhouders <p.stadhoud...@timeff.com>
> Onderwerp: Re: Form with Custom Grow Box
> 
> having not done this
> this *might* work
> a button (picture probably)
> on mouse down - get current mouse/window coords on mouse up - get
> mouse position - resize window to that position
> 
> 
> On Tue, 19 Sep 2017 06:58:40 +, Piotr Chabot Stadhouders via 4D_Tech
> wrote:
> > Hi,
> >
> > I think I have read somewhere that it is possible somehow to create a
> > form with a custom grow box.
> > I am not talking about maximize / minimize but on Windows the area in
> > the right bottom corner of a window I want to open a Modal form dialog
> > box and create my own grow box.
> >
> > Was I dreaming, or is this possible?
> >
> > 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
> >
> **
> 
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
**
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: Form with Custom Grow Box

2017-09-19 Thread Chip Scheide via 4D_Tech
having not done this
this *might* work
a button (picture probably)
on mouse down - get current mouse/window coords
on mouse up - get mouse position - resize window to that position


On Tue, 19 Sep 2017 06:58:40 +, Piotr Chabot Stadhouders via 
4D_Tech wrote:
> Hi,
> 
> I think I have read somewhere that it is possible somehow to create a 
> form with a custom grow box.
> I am not talking about maximize / minimize but on Windows the area in 
> the right bottom corner of a window
> I want to open a Modal form dialog box and create my own grow box.
> 
> Was I dreaming, or is this possible?
> 
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Form with Custom Grow Box

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

I think the bottom-right grow box is deprecated (v14, Mac OS X Lion, Windows)
a window can now be resized from any side.

> 2017/09/19 15:58、Piotr Chabot Stadhouders via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> I am not talking about maximize / minimize but on Windows the area in the 
> right bottom corner of a window




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