resizing images with CTR

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
TomKeane123
Posts: 7
Joined: Sat Jul 06, 2019 10:04 am

resizing images with CTR

Post by TomKeane123 » Sat Jul 13, 2019 8:48 am

pressing the shift key While resizing images keeps the aspect ratio the same but I don't understand why someone would want to use the control key when resizing images.

Can someone explain some real-world examples of where CTR resizing would be used?

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: resizing images with CTR

Post by Klaus » Sat Jul 13, 2019 10:00 am

???
TomKeane123 wrote:
Sat Jul 13, 2019 8:48 am
pressing the shift key While resizing images keeps the aspect ratio the same but I don't understand why someone would want to use the control key when resizing images.

Can someone explain some real-world examples of where CTR resizing would be used?
Sorry, don't get it!? The Control key does NOTHING when holding while resizing an image!

At least not here on my Mac, here the context menu pops up (like a right-click) when pressing the CTRL key BEFORE resizing and does nothing when pressing immediately after I begin to resize.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: resizing images with CTR

Post by dunbarx » Sat Jul 13, 2019 1:58 pm

Confirmed as Klaus said, though I am also on a Mac.

Craig

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs » Sat Jul 13, 2019 3:04 pm

On Linux (and I suspect Windows), you can indeed hold the CTRL key before clicking a resize handle, which acts like more of a cropping than a resizing, in that it moves only the outside frame of the image object.
TomKeane123 wrote:
Sat Jul 13, 2019 8:48 am
Can someone explain some real-world examples of where CTR resizing would be used?

I can think of many times where you might want to crop something instead of resizing it.

You guys don't get that on the Mac? I am surprised :shock:
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: resizing images with CTR

Post by Klaus » Sat Jul 13, 2019 3:06 pm

AHA! :D
On the Mac the CMD key does the cropping.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs » Sat Jul 13, 2019 3:40 pm

Well, yes, isn't the cmd key the equivalent of the ctrl key on a mac keyboard?
Klaus wrote:
Sat Jul 13, 2019 10:00 am
Sorry, don't get it!? The Control key does NOTHING when holding while resizing an image!
Or do you have some other kind of keyboard?
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: resizing images with CTR

Post by Klaus » Sat Jul 13, 2019 3:46 pm

bogs wrote:
Sat Jul 13, 2019 3:40 pm
Well, yes, isn't the cmd key the equivalent of the ctrl key on a mac keyboard?
Nope! On my (standard Apple) keyboard the "bottom" line from left to right:
CTRL - ALT - CMD - SPACE - CMD - ALT - CTRL

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs » Sat Jul 13, 2019 4:45 pm

Ahhhhhhhhhhh. Wierd :?
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: resizing images with CTR

Post by Klaus » Sat Jul 13, 2019 5:01 pm

Weird? Only for non Mac users. :-)

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs » Sat Jul 13, 2019 6:00 pm

No, I mean weird as in I thought the cmd key on mac was the control key on everything else, so ...
weird as in why would you bother to put a control key on the keyboard?

I'll readily admit to not having used a mac since my mac plus :D
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: resizing images with CTR

Post by Klaus » Sat Jul 13, 2019 6:52 pm

Well, the macOS has a LOT of keyboard shortcuts that involve the CTRL and CMD key!

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: resizing images with CTR

Post by richmond62 » Sun Jul 14, 2019 1:45 pm

Not ALL keyboards are created equal:
-
Beebkeyboard.png
-
Wonder why I cannot find a USB keyboard with a SHIFT LOCK key: it's dead useful.

Seriously, though . . . these are the ONLY keyboards I use with Macintosh computers:
-
Max.jpg
-
the CTRL, ALT & CMD keys can clearly be seen on either side of the SPACE bar.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: resizing images with CTR

Post by richmond62 » Sun Jul 14, 2019 1:57 pm

While pressing the CTRL, ALT or COMMAND key on a Macintosh
will NOT yield a rawKey code, you can
check for this by using:

Code: Select all

if the controlKey() is down then
---- do something
end if
and the Dictionary claims that commandKey and controlKey are synonymous,
which makes me wonder how one detects if the CTRL key on a Macintosh is down.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”