Re: Stupid Question Again - Proportional Scaling

2018-03-19 Thread Bob Sneidar via use-livecode
> On Mar 18, 2018, at 09:57 , Richard Gaskin via use-livecode > wrote: > > How often do we see apps that constrain window resizing? This is common I think for apps which have a set of fields displaying data, tables etc. Maybe there are some panes and tabs, but

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > On 3/18/18 12:41 PM, Richard Gaskin via use-livecode wrote: >> Exactly. The contents of the window can respond to the resizeStack >> message to be maximized within the window's content region without >> necessarily constraining the resize of the window's shape itself. >>

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
Never tried to script that. It's *eventually* simple -- as always with LC. Here again a little bit optimised, changing the size also by the scrollWheel: -- 1. Don't use a resizestack handler -- 2. Set resizable of the stack to FALSE local l0, t0, ff on mouseDown put the long id of the target

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread J. Landman Gay via use-livecode
Very nice. :) On 3/18/18 1:29 PM, hh via use-livecode wrote: @Peter You could try the following (doesn't need a shiftkey down). Put the following into the stack's script and drag anywhere the image to resize it and the stack proportionally (topLeft fixed). -- 1. Don't use any resize stack

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread J. Landman Gay via use-livecode
On 3/18/18 12:41 PM, Richard Gaskin via use-livecode wrote: Exactly.  The contents of the window can respond to the resizeStack message to be maximized within the window's content region without necessarily constraining the resize of the window's shape itself. Sure, but aesthetically it's

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
@Peter You could try the following (doesn't need a shiftkey down). Put the following into the stack's script and drag anywhere the image to resize it and the stack proportionally (topLeft fixed). -- 1. Don't use any resize stack handler -- 2. set resizable of the stack to FALSE local l0, t0, ew,

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread Richard Gaskin via use-livecode
Exactly. The contents of the window can respond to the resizeStack message to be maximized within the window's content region without necessarily constraining the resize of the window's shape itself. -- Richard Gaskin Fourth World Systems J. Landman Gay wrote: > I think he wants to use

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread J. Landman Gay via use-livecode
I think he wants to use window resizing as an automatic zoom, like a magnifying glass. Google Maps does this with + and - buttons but doesn't resize the window content to fit. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 18,

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread Richard Gaskin via use-livecode
Peter Reid wrote: >> I have a sub-stack that contains an image. I want the user to be >> able to drag the corners and edges of the sub-stack window to make >> the window and its image larger or smaller, but the window and >> image must maintain their original aspect ratio ? no stretching, >> no

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread Peter Reid via use-livecode
d 71 Leconfield Road, Loughborough, Leics. LE11 3SP, UK Tel: +44 (0)1509 268843 Mobile/Cell: 07778 632533 Email: pe...@reidit.net > Message: 1 > Date: Sat, 17 Mar 2018 17:14:36 + > From: Peter Reid <pr...@reidit.co.uk> > To: use-livecode@lists.runrev.com > Subject: Stu

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread J. Landman Gay via use-livecode
On 3/18/18 1:26 AM, hh via use-livecode wrote: [Sorry lost above half of my answer.] You could try the following with user's interaction: For proportional resizing a stack window hold the shiftkey down when resizing. And in card's script add on resizestack w,h set rect of img 1 to

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
[Sorry lost above half of my answer.] You could try the following with user's interaction: For proportional resizing a stack window hold the shiftkey down when resizing. And in card's script add on resizestack w,h set rect of img 1 to (0,0,w,h) end resizestack

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread hh via use-livecode
For proportional resizing a stack window hold the shiftkey down when resizing. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Stupid Question Again - Proportional Scaling

2018-03-18 Thread J. Landman Gay via use-livecode
On 3/17/18 12:14 PM, Peter Reid via use-livecode wrote: I have a sub-stack that contains an image. I want the user to be able to drag the corners and edges of the sub-stack window to make the window and its image larger or smaller, but the window and image must maintain their original aspect

Stupid Question Again - Proportional Scaling

2018-03-17 Thread Peter Reid via use-livecode
I know it's possible and I know it's simple really, but I can't remember it/figure it out! I have a sub-stack that contains an image. I want the user to be able to drag the corners and edges of the sub-stack window to make the window and its image larger or smaller, but the window and image