Forum > LCL

PascalScada not usable with Trunk 64 maybe others too ?

(1/2) > >>

jamie:
I just installed that package from online and it installs correctly however, many of the visual controls for the HMI like Panel transparent button etc drop on the form with no size, locks up the IDE when trying to size it.

 The TProgress bar is almost impossible to move etc..

 I was able to uninstall it.

 This was on Windows 10 Pro 64 with 64 bit Trunk..

Just thought I was throw that out there.


P.S.
 I had one ModBudRTU and SerialPort control on the form at the time.

Alextp:
It's strange that I cannot find the forum for PascalScada. Devs don't care?

wp:
The controls with zero size do not specify Width and Height in their constructor, neither directly, nor in the Lazarus way of providing a GetControlClassDefaultSize method. With the following modification of THMICustomBasicValue and rebuilding the IDE, the valve draws correctly upon dropping on the form:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---type  THMICustomBasicValve = class(THMIBasicControl)  private    ...  protected    ...    class function GetControlClassDefaultSize: TSize; override;  public    ...  end;  constructor THMICustomBasicValve.Create(AOwner: TComponent);begin  ...  with GetControlClassDefaultSize do    SetInitialBounds(0, 0, CX, CY);end; class function THMICustomBasicValve.GetControlClassDefaultSize: TSize;begin  Result.CX := 59;  Result.CY := 60;end; 
I guess that the other controls can be fixed in the same way. But where to report this?

Alextp:
Contacts are 4 chat channels, see the bottom of https://www.pascalscada.com/

jamie:
If memory serves me correctly Delphi automatically sets the Width ,Height t0 100,100 during construction if the base to Tcontrol is called or some basic value.

 So why does we need the preferred size to start with ?

 I would think that that method of getting the preferred size would be called after that if it's being supported.

Navigation

[0] Message Index

[#] Next page

Go to full version