Author Topic: OpendCL 9 - Automatic scaling of controls causing image mismatches  (Read 12254 times)

domenicomaria

  • Member
  • *
  • Posts: 42
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #15 on: January 24, 2023, 09:33:47 PM »
with OpenDCL.Runtime.9.2.0.3

(dcl_project_load "@dcl-select-color" t)
(dcl_form_show "@dcl-select-color" "frm_sc")

I have attached the file below @DCL-SELECT-COLOR.odcl

If you open this file in the OpedDCL studio, it has the right look,
but it doesn't happen the same when you try to show it in Acad . . .
« Last Edit: January 24, 2023, 09:36:35 PM by domenicomaria »

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3101
    • Outside The Box
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #16 on: February 25, 2023, 07:22:27 AM »
I think the solution is to draw the color swatches at runtime using the picturebox methods, instead of displaying a pre-made image. There are functions like XPixelsToTwips that can be used for calculating the ratio of pixels to dialog units, but I think in this case you only need to evenly divide the overall size of the picturebox.
« Last Edit: February 25, 2023, 03:35:28 PM by owenwengerd »

domenicomaria

  • Member
  • *
  • Posts: 42
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #17 on: February 25, 2023, 07:55:15 AM »
I was hoping there was a solution that
would make the new version of the OpenDcl runtime
fully compatible with previous ODCL files.

Couldn't there be an option to turn off
the automatic resizing of the controls?

domenicomaria

  • Member
  • *
  • Posts: 42
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #18 on: March 31, 2023, 11:24:17 AM »
. . . it seems that there is a lot of people interested in this topic !

ScottBolton

  • Member
  • *
  • Posts: 42
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #19 on: November 16, 2023, 03:25:55 AM »
I've also been trying to get a solution to this but with no luck.

domenicomaria

  • Member
  • *
  • Posts: 42
Re: OpendCL 9 - Automatic scaling of controls causing image mismatches
« Reply #20 on: November 23, 2023, 11:02:59 AM »
I've also been trying to get a solution to this but with no luck.

unfortunately it seems that
it is not possible or it is considered useless
to modify the behavior of this automatic scaling of controls ...