On the fly resizing window :)

Hi Leo :cat:

As always lots of kitties at our sanctuary. Hope your kitties are thriving. I love opus naturally, can't imagine pc life without it. My love affair with opus doesn't even begin to embrace the tech capabilities that abound. I just love it for the ease of exploring, managing all the data. So here is a wish that may or may not be feasible. I have a wide screen monitor (desktop) and frequently resizing opus window relating to what is on the screen/moving real-estate around. It would be fabulous to have presets for reducing window size 50%, 25% or even custom presets. If this feature is available I have not been able to find it. Something super convenient that can be set with icons (like you showed me how to do for staying on top).

Reading previous threads I don't see this particular request.

Also not sure why I could not login/did not change pw that I can recall. DO sent a link so here I am. Hopefully I can get back in wink.

thanks so much as always

DO and Leo ROCK

love,
rose

You can make buttons which run Set LISTERSIZE=... to do that.

e.g. Set LISTERSIZE=1000,700 would set the height to 1000 pixels and make the width 700 pixels.

e.g. Set LISTERSIZE=*,500 would keep the height as-is and make the width 500 pixels.

You could also use layouts, but the commands are probably better/easier if you just want some buttons to resize the current window.

Fabulous Leo, thanks so much. I'll play around with it. This will greatly simplify managing realestate. How do ppl even mange w/o DO? Being able to move around in windows easily is an absolute necessity in my world.

purrs to the kitties

love,
rose

1 Like

Evening Leo~can't seem to find set listersize/keeps taking me back to layouts. Read manual, search in prefs/just can't seem to find it.

Directions much appreciated :cat:

It's one of the arguments for the Set command.

Thanks Leo, John...I've looked and looked. I can't seem to find how to enter set command for a lister. How do I enter the set command? I've searched the help files and online. It must be something so obvious it's not listed/but it's not obvious to me. Please remember I am dyslexic so I don't always see something that is perfectly obvious to someone else.

thanks,
rose

It works like any other command, you can set up a button or hotkey to run it. Or press > to display the command-line and type it in as an ad-hoc command.

See https://www.gpsoft.com.au/help/opus12/index.html#!Documents/customize.htm if you're not sure about configuring buttons/hotkeys.

( How to use buttons and scripts from this forum is also useful as an alternative guide. --Leo)

Okay, this is fabulous. Took a bit but going over the directions slowly and repeatedly it finally all clicked. Just takes me a bit to 'see'.
Leo your recommendation of 1000/700 is the perfect size...purrfect grin.
Two more questions...how do I make it on/off? And how do I assign an icon? All I see is assign an image.

In all these years of using and loving Opus new possibilities open up which is very challenging and rewarding for me. I honestly don't understand how anyone using windows manages w/o it and I don't even begin to understand all the abilities.
xxx
rose

These are the settings for keep on top button.

@toggle:if Set LISTERCMD=OnTopOn
@icon:#default:favorites,LISTERCMD=OnTopOn
@icon:smiley,LISTERCMD=OnTopOff
@if:Set LISTERCMD=OnTopOn
Set LISTERCMD=OnTopOff
@if:Else
Set LISTERCMD=OnTopOn

How do I modify for changing size buttons?

thanks again,
rose

Checking we're on the same page:

You want the button to toggle between two window sizes?

Just that, or changing always-on-top at the same time in one button?

This is a little VB Macro I have been using to change the size of Listers.

It gives you a list of Lister widths to choose, and sets the depth in proportion. (It is easy to change the proportion if it does not suit your needs.)

Obviously the widths will depend om your screen size and your personal choice, but they are really easy to alter in the code.

If it is useful please fell free to bend it to your needs.

Resizer.dcf (4.7 KB)

Yes

That's great, thank you so much. Have to run to town for produce write off for our sanctuary but when we return I'll play with your script.

Really appreciate everyone's help :heart:

Where would I insert this? Cking help files for macro can't find anything that would answer my question.

thanks,
rose

More time to reply now. I would love to have buttons (like the one you helped with for toggle on top/toggle off) for few opus window sizes. Sometimes I have 4 windows on screen/sometimes less. Being able to adjust window size on the fly would just be so convenient.

I've been studying the brain for a bit now and have a greater understanding of how brains register/perceive stimulation (audio, visual) so more aware of what I don't see and work arounds, just takes me a bit longer. When I finally 'see' something it's always such a high 5 moment. Learning is fun.
appreciate your help...always do
rose

Just place the button an a toolbar.

Right click the toolbar you want to add the macro too and choose "Customize".

Then simply drag the button to the toolbar.

Oh gosh, this is impressive. The depth in proportion is spot on.

When you say alter in code...where would I find the code?
I won't tie you up with macro lessons...but would like to understand a bit more of how this is put together to broaden my understanding.
thanks again,
rose

Go back in customise mode, right click on the icon and select edit. It should be straightforward from there.

Alternatively, hold down 'alt' and left click the button to go directly into edit mode (this will only work if Preferences / Toolbars / Options / Alt-Click to edit Toolbar buttons is turned on).

Here's a button which toggles between two window sizes:

Toggle Window Size.dcf (1.4 KB)

If you edit the button, you can change the sizes at the top, as shown here:

@rose

Here is a PDF in which I have annotated the code to help to understand it.

Script explanation.zip (100.7 KB)

Hope it helps.

1 Like