Recent

Author Topic: lazarus "Online Package Manager"->"Options" form's default size is too short  (Read 494 times)

gasensor

  • New Member
  • *
  • Posts: 15
lazarus "Online Package Manager"->"Options" form's default size is too short.

"Use default theme manager" do not display in defalult dialog size.

It is a same bug:

https://forum.lazarus.freepascal.org/index.php/topic,59334.0.html

Maybe there are more similar problems.


wp

  • Hero Member
  • *****
  • Posts: 9739
I fixed it in trunk.

If you don't use git patch it yourself by doing the following steps:
  • Load file opkman_optionsfrm.pas (in (lazarus)/components/onlinepackagemanager).
  • Select the "Use default theme" checkbox. Set its BorderSpacing.Bottom to 7.
  • Add the following OnActivate handler to the TOptionsFrm:
Code: Pascal  [Select][+][-]
  1. procedure TOptionsFrm.FormActivate(Sender: TObject);
  2. var
  3.   h: Integer;
  4.   delta: Integer;
  5. begin
  6.   h := cbUseDefaultTheme.Top + cbUseDefaultTheme.Height + cbUseDefaultTheme.BorderSpacing.Bottom;
  7.   delta := h - pgOptions.ClientHeight;
  8.   ClientHeight := pgOptions.Top + pgOptions.Height + delta + pgOptions.BorderSpacing.Around +
  9.     bpOptions.Height + bpOptions.BorderSpacing.Around;
  10. end;
  • Rebuild the IDE ("Tools" > "Build Lazarus with Profile...")
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

gasensor

  • New Member
  • *
  • Posts: 15
Lazarus 2.3.0 can not "Rebuild the IDE" in default setting.

Compiler Info:  debugger.pp(550,36) Error:Identifier not found "TWatchDisplayFormat"

source get form gitlab(main d2d30348)


I fixed it in trunk.

If you don't use git patch it yourself by doing the following steps:
  • Load file opkman_optionsfrm.pas (in (lazarus)/components/onlinepackagemanager).
  • Select the "Use default theme" checkbox. Set its BorderSpacing.Bottom to 7.
  • Add the following OnActivate handler to the TOptionsFrm:
Code: Pascal  [Select][+][-]
  1. procedure TOptionsFrm.FormActivate(Sender: TObject);
  2. var
  3.   h: Integer;
  4.   delta: Integer;
  5. begin
  6.   h := cbUseDefaultTheme.Top + cbUseDefaultTheme.Height + cbUseDefaultTheme.BorderSpacing.Bottom;
  7.   delta := h - pgOptions.ClientHeight;
  8.   ClientHeight := pgOptions.Top + pgOptions.Height + delta + pgOptions.BorderSpacing.Around +
  9.     bpOptions.Height + bpOptions.BorderSpacing.Around;
  10. end;
  • Rebuild the IDE ("Tools" > "Build Lazarus with Profile...")

wp

  • Hero Member
  • *****
  • Posts: 9739
I rebuilt the IDE yesterday before committing, and again today: No problem here.

The first thing to do in case of such issues is to try "Tools" > "Configure Build Lazarus" > "Clean up": check "Clean all" and "Switch after building to automatically" > "Build"
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

gasensor

  • New Member
  • *
  • Posts: 15
I delete all fpc/lazarus files(include *.cfg in /etc and .lazarus in /home ), then reinstall lazarus 2.3.0. It succed to rebuild ide.

It is no effect that just only "Clean up" and check "Clean all".

I do not find the reason of the fault of rebuilding. Maybe version conflicts.

....
Options form size is OK.


I rebuilt the IDE yesterday before committing, and again today: No problem here.

The first thing to do in case of such issues is to try "Tools" > "Configure Build Lazarus" > "Clean up": check "Clean all" and "Switch after building to automatically" > "Build"

wp

  • Hero Member
  • *****
  • Posts: 9739
I delete all fpc/lazarus files(include *.cfg in /etc and .lazarus in /home )
cfg for v2.3.0 in .lazarus? I would not do this when there is another Laz on the system because this is the standard config folder and the two versions will mix configuration files... Better to use a different folder for the 2.3.0 configuration and tell this the IDE by adding a file lazarus.cfg to the folder in which the Laz binary resides. The contents should be the line "--primary-config-path=<path-to-config>", e.g. "--primary-config-path=~/.config/laz320" (unquoted, of course).
« Last Edit: May 16, 2022, 09:52:02 pm by wp »
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018