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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: resizing images with CTR

Post by Klaus »

???
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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: resizing images with CTR

Post by dunbarx »

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

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

Re: resizing images with CTR

Post by bogs »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: resizing images with CTR

Post by Klaus »

AHA! :D
On the Mac the CMD key does the cropping.
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: resizing images with CTR

Post by Klaus »

bogs wrote: Sat Jul 13, 2019 3:40 pmWell, 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: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs »

Ahhhhhhhhhhh. Wierd :?
Image
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: resizing images with CTR

Post by Klaus »

Weird? Only for non Mac users. :-)
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: resizing images with CTR

Post by bogs »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: resizing images with CTR

Post by Klaus »

Well, the macOS has a LOT of keyboard shortcuts that involve the CTRL and CMD key!
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: resizing images with CTR

Post by richmond62 »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: resizing images with CTR

Post by richmond62 »

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