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
<[email protected]>
<www.synergyfarmsolutions.com>


> On Sep 19, 2017, at 9:51 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <[email protected]> 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:[email protected]
**********************************************************************

Reply via email to