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