CtrlrX v5.6.28 Release - Scalable GUI for responsive design added and menuBar not showing on export FIXED #588
Replies: 3 comments 10 replies
-
Some great additions there Damien. I haven't yet had time to test it, but I have to ask. Does this function "blur" pictures used for sliders/ backgrounds as long as they're not vector-based? Nonetheless, they are great additions. I'm in the process of writing a complete background for my panel which consists solely of the paint method, which would scale nicely with your added zoom function because it's based on the width/ height of the panel instead of absolute coordinates. In my instance of Ctrlr, I added a few missing defs from classes. One that comes to mind is jmap. I also tried to bind the Normalisable Range class from Juce with Luabind. Which partially succeeded. Very handy when it comes to creating sliders yourself in a custom component. Yes, there are workarounds, like adding a function in Lua but it's fewer scripts and functions this way. Not added yet but I also wanted to add a right-click menu to the custom component like the other components have. Speaking about right-click. Wanted to add the "open panel mode" to the right-click menu on components, as well as a window that opens just the component properties in a floating window. I would like to add them to your fork so you can review them before adding them but.. I don't get the geist of GitHub. I can create my own fork but I don't have a clue what I'm doing when it comes to pulling/ requests/ commits and so on. Let alone contribute to your fork. Dnaldoog once tried to pull me through but to no avail. Read a lot but there are way too many confusing tutorials on how to do it in Visual Studio or GitHub's own program or external consoles. I just can't get the hang of it. So if someone has a tutorial that made it tick the "gotcha" boxes, please let me know. |
Beta Was this translation helpful? Give feedback.
-
I botched my installation of Ctrlr that I worked on to debug and release. I don't know what happened but I tried to fork Ctrlr (succeeded) but now I'm getting build errors while I did the exact same steps as I did before from Bijlevel's manual. I think the problem is that it's not taking the repository from April 8th 2021. That was the one that would debug and release fine. But the 2 newer commits didn't. Does anybody know how I point Visual Studio to the right date of the repository? |
Beta Was this translation helpful? Give feedback.
-
Saving/recalling the window sizes in a value tree stateData LUA script is required to have the current size stored in the plugin host prefs. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I just published a new commit to my Ctrlr Fork as v5.6.28.
https://github.com/damiensellier/CtrlrX
There's 2 major updates in this commit.
This is the new Editor part for Globals in the property pane:
"Canvas Bounds" , changing values are now updating the actual canvas graphics. Before, only resizing with the mouse worked.
"ViewPort is resizable on a restricted instance" is set to to Resizable as default. You can lock the window with this option.
"ViewPort Scrollbars visibility on an exported instance" is set to "Show" as default". You can hide them to prevent scrollbars showing if the APP window is showing scrollbars on your panel when locked.
"ViewPort resize limits enabled on an exported instance" it's set to Disabled by default. It let you define a minimum and maximum APP window size.
"ViewPort enable aspect ratio" is where the magic happens. It's set to Disabled by default. When Enabled, you can keep an aspect ratio for your APP window, required for scalable/responsive design.
"ViewPort fixed aspect ratio" is calculated automatically when the canvas size field is changed (0 0 600 400 for 1.5 etc)
"Panel ViewPort background colour" is a new property to define the color of the ViewPort (where the panel canvas sits)
"Called when the ViewPort is resized" is where you select your LUA script triggered by resizing the APP/Plugin window.
Here is an exemple on how to scale the panel to the OS window:
Hope it will help with your new projects and happy new year 2024 to each and everyone of you ;)
Damien
EDIT :
Saving/recalling the window sizes in a value tree stateData LUA script is required to have the current size stored in the plugin host prefs.
Exemple here (not responsive yet, but saving size for DAW) :
https://github.com/RomanKubiak/ctrlr/files/7819295/Select.Window.Size_1_0_0_2022-01-05_21-15.panel.zip
I'll post a sample panel with all features soon.
Beta Was this translation helpful? Give feedback.
All reactions