[SOLVED] Zoom 100%

Working on new editor enhancements?
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[SOLVED] Zoom 100%

Post by boddhi »

Would it be possible to have a menu item (in menu Edition ?) like 'Zoom/View or Display 100%' to return to a normal display size when this has been modified?
It would be quicker and easier than playing with the mouse wheel. :D

UNNECESSARY REQUEST !!!

Go to File menu/Settings/General/Shortcuts/Zoom default
Last edited by boddhi on Fri Jun 30, 2023 1:17 am, edited 2 times in total.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Zoom 100%

Post by Marc56us »

boddhi wrote: Thu Jun 29, 2023 11:38 am Would it be possible to have a menu item (in menu Edition ?) like 'Zoom/View or Display 100%' to return to a normal display size when this has been modified?
It would be quicker and easier than playing with the mouse wheel. :D
Faster to use keyboard :wink:
CTRL + / (slash in numpad) = normal zoom
CTRL + or - = Zoom + or -
(like many browsers, except normal zoom = CTRL + 0)
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Zoom 100%

Post by boddhi »

Salut Marc,

You're right. I also use CTRL +/-, but more in situations where both hands are already on the keyboard, which saves me a lot of unnecessary mouse movements (yes, I'm an old boomer who's known computers without mouses and 'la frappe au kilomètre', so the less I use them the better I feel! :D ).
Nevertheless, in certain situations, you already have the mouse in your hand and it's actually quicker to use CTRL + Mouse wheel.

In short, if the PB team don't think my suggestion is silly, it would be cool to give us the option of reverting to a normal display size. Then, free to us to configure the call as we want : button, keyboard shortcut, etc.

PB Team, thanks in advance :wink: :)
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Zoom 100%

Post by Marc56us »

I think, this is a Scintilla function, so maybe PB IDE coders can (easily?) add this

SCI_SETZOOM(0) ?
https://www.scintilla.org/ScintillaDoc.html#Zooming

:?: :wink:
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Zoom 100%

Post by AZJIO »

This can be added as a tool
viewtopic.php?p=600116#p600116
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Zoom 100%

Post by boddhi »

Thanks to all.

While waiting for an official version (because it's not multi-OS and Windows only) :

Code: Select all

; Start code
SendMessage_(Val(GetEnvironmentVariable("PB_TOOL_Scintilla")),#SCI_SETZOOM,0,0)
; End code
 
 
Create executable and then, menu Tools/Configure tools...
Image

Note : After this, we can also create a toolbar button via Menu File/Settings/Toolbar
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Zoom 100%

Post by BarryG »

boddhi wrote: Thu Jun 29, 2023 2:51 pmboth hands are already on the keyboard
So just press Ctrl+0 and it's back to 100%. (Like Marc56us said).
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Zoom 100%

Post by boddhi »

BarryG wrote: So just press Ctrl+0 and it's back to 100%. (Like Marc56us said).
If it's a question, yes !
But, of course, you can choose any other shortcut you want :)
Note : First '0' in SendMessage (wParam) is the scale (in points) to zoom. It's recommended to use a value between '-10' and '20'
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Zoom 100%

Post by BarryG »

I'm not talking about using a tool. The IDE already natively goes back to 100% when you press Ctrl+0. No tools or SendMessages or Scintilla hacks needed.
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Zoom 100%

Post by boddhi »

Oupps, you're right !!!! I didn't seen it in Settings/Shortcuts. :oops: :?

I had tested CTRL + NUMPAD + 0 which had no effect ! And for good reason, it wasn't the good '0'.
And as there's no equivalent menu item, I thought this function didn't exist!
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: [SOLVED] Zoom 100%

Post by boddhi »

Interesting fact : On my 102-key azerty keyboard, zoom in works with both '+' keys but not zoom out, which only works with the '-' key on the numeric keypad.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: [SOLVED] Zoom 100%

Post by Marc56us »

I had tested CTRL + NUMPAD + 0 which had no effect
CTRL + /

(The slash ('/') on numpad on my keyboard 105)
:wink:
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: [SOLVED] Zoom 100%

Post by boddhi »

Marc56us wrote: CTRL + /
Thanks Marc, it works for me too ! :wink:
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Post Reply