Recent

Author Topic: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?  (Read 3873 times)

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Hi,

I managed to translate an old example from the 1.0 VST-ASIO package.
Doing wild things around NewYear is so nice, without time pressure ...  :D


The plugin, complied with Delphi 5, does not scale. So my OS (Win10) scales it up (as expected ..)

The plugin, complied with Lazarus 1.8, does NOW also not scale, even though I added
Code: Pascal  [Select][+][-]
  1.   {$IFDEF FPC}Application.Scaled:= True;{$ENDIF}
  2.  


I must have changed anything, I believe to remember, on first time it compiled with working scaling ..

Are there any Lazarus / FPC compiler switches for scaling ?
« Last Edit: January 01, 2018, 03:13:26 pm by PeterX »
usually using latest Lazarus release version with Windows 10

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #1 on: January 02, 2018, 01:27:29 am »
go to the project settings "Application" and there you'll see

 use LCL scaling (HI-DPI)

 also you may need to use themes.
 This is assumes you are using the IDE..

 Experiment with that.
« Last Edit: January 02, 2018, 01:31:23 am by jamie »
The only true wisdom is knowing you know nothing

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #2 on: January 02, 2018, 11:41:22 am »
go to the project settings "Application" and there you'll see

 use LCL scaling (HI-DPI) ...
I already did this, in all my projects, since 1.8RC5

So also this project is LCL-scaling enabled, Hi-DPI-aware etc ... But it's a DLL ...  :(
Please see attached project.
« Last Edit: January 02, 2018, 11:44:21 am by PeterX »
usually using latest Lazarus release version with Windows 10

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #3 on: January 03, 2018, 11:56:15 pm »
DLL's don't work like the main process, they don't receive all those fancy messages..

 you can use the "ScaleBy" manually
The only true wisdom is knowing you know nothing

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #4 on: January 04, 2018, 11:39:49 pm »
DLL's don't work like the main process, they don't receive all those fancy messages..
 you can use the "ScaleBy" manually
Thanks, I will try this on the weekend !
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #5 on: January 05, 2018, 12:25:00 pm »
This is TestPluginVST.zip,  cleaned up ..
« Last Edit: January 05, 2018, 11:13:44 pm by PeterX »
usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: VST Plugin - compiling a DLL with LCL - compiler switches for scaling ?
« Reply #6 on: January 17, 2018, 11:54:10 am »
DLL's don't work like the main process, they don't receive all those fancy messages..

 you can use the "ScaleBy" manually

Do they REALLY not receive those messages ?

Or can I catch them manually from the MessageLoop anyhow ?
usually using latest Lazarus release version with Windows 10

 

TinyPortal © 2005-2018