Recent

Author Topic: [SOLVED] TLabeledEdit.EditLabel.Layout not working  (Read 2561 times)

jipété

  • Full Member
  • ***
  • Posts: 113
Re: [SOLVED] TLabeledEdit.EditLabel.Layout not working
« Reply #15 on: December 06, 2023, 01:09:42 pm »
So, simply rebuild the IDE again as normal user
I can't...

Code: Pascal  [Select][+][-]
  1. $ ./startlazarus
  2. ./startlazarus: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by ./startlazarus)
  3.  
  4. $ linuxinfo
  5. ... Bibliothèque système '2.31.0'

Sorry...

See you tomorrow.

dsiders

  • Hero Member
  • *****
  • Posts: 1080
Re: TLabeledEdit.EditLabel.Layout not working
« Reply #16 on: December 06, 2023, 08:49:22 pm »
Documentation can always be improved. Based on the changes submitted by Werner, topics will be updated... but they will not appear in fixes_3_0 either.

I posted an update to the Lazarus 4.0 documentation for:

  • TBoundLabel
  • TBoundLabel.Create
  • TBoundLabel.FocusControl
  • TBoundLabel.Alignment
  • TBoundLabel.Layout
  • TLabelPosition
  • TCustomLabeledEdit
  • TCustomLabeledEdit.DoPositionLabel
  • TLabeledEdit

The topics can be previewed at:


Feedback welcomed.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: [SOLVED] TLabeledEdit.EditLabel.Layout not working
« Reply #17 on: December 07, 2023, 01:30:22 am »
Thanks, great.

Maybe one note in TCustomLabeledEdit:

"When EditLabel is placed above or below the Edit control and its caption is wider than the Edit, the text will be clipped at the Edit's left/right sides. Likewise, when the EditLabel is placed at the left or right of the Edit control, and is higher than the Edit it will be clipped at the top and bottom sides of the Edit."

And maybe also in TBoundLabel, where "Edit" should be replaced by "associated control".

dsiders

  • Hero Member
  • *****
  • Posts: 1080
Re: [SOLVED] TLabeledEdit.EditLabel.Layout not working
« Reply #18 on: December 07, 2023, 02:08:20 am »
Thanks, great.

Maybe one note in TCustomLabeledEdit:

"When EditLabel is placed above or below the Edit control and its caption is wider than the Edit, the text will be clipped at the Edit's left/right sides. Likewise, when the EditLabel is placed at the left or right of the Edit control, and is higher than the Edit it will be clipped at the top and bottom sides of the Edit."

And maybe also in TBoundLabel, where "Edit" should be replaced by "associated control".

Good suggestions. Thanks.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

jipété

  • Full Member
  • ***
  • Posts: 113
Re: [SOLVED] TLabeledEdit.EditLabel.Layout not working
« Reply #19 on: December 07, 2023, 02:08:02 pm »
Hello,

logged as root in a Virtual Machine running a new Debian bookworm 12.2 -->
fresh install of fpc-laz & -src 3.2.2 then Laz 2.2.6 ok
fast test ('hello world') ok
rebuild ide with your setup -->
  Nettoyer les codes sources de Lazarus: Code de sortie 2, Erreurs : 1
  make[2]: *** interfaces/carbon: No such file or directory.  Stop.
  make[1]: *** [Makefile:5176: cleanall] Error 2
  Error: make: *** [Makefile:3865: cleanlaz] Error 2
shit !  >:D

Revert creation's options to original then call menu/tools/Create Lazarus with Normal profile --> long time to compile all files then ide restarts nicely.
This crazy stuff drives me nuts.  :(
...
But, after ide restarted, I changed the 3 files from yesterday and used the menu/tools/Create Lazarus with Normal profile and after compile and ide restart, I try a new project with one TPanel hosting 3 TLabeledEdit, each one with a different value for layout and it works !!!!!!!
Yeah !
labelededit_OK.png
 :D
Thanks thanks thanks for that.
Merry Xmas and happy new year !
(and I can resize the source window as I want, nice !)
« Last Edit: December 07, 2023, 02:11:14 pm by jipété »

jipété

  • Full Member
  • ***
  • Posts: 113
Re: [SOLVED] TLabeledEdit.EditLabel.Layout not working
« Reply #20 on: January 25, 2024, 11:01:56 am »
Hello !

and happy new year, despite the wars, crazy climate and so on...

Just installed a brand new 3.0.0, that's fine except the slag in environmentoptions.xml where I can read :
Code: Pascal  [Select][+][-]
  1. <ExternalTools Version="3" Count="2">
  2.   <Tool1>
  3.     <Title Value="Resource Explorer"/>
  4.     <Filename Value="/usr/share/lazarus/2.2.6/examples/lazresexplorer/resexplorer"/>
  5.   </Tool1>

and, related to this topic, still the same compil's error :
Code: Text  [Select][+][-]
  1. Now rebuild the IDE: go to "Tools" > "Configure Build Lazarus", in the "Clean up" box check "Clean all" and "Switch after building to automatically".
  2. Then click "Build" and wait until the IDE restarts.
Doesn't work !
Messages' box after Build -->
Code: Text  [Select][+][-]
  1. Nettoyer les codes sources de Lazarus: Code de sortie 2, Erreurs : 1
  2. make[2]: *** interfaces/carbon: No such file or directory.  Stop.
  3. make[1]: *** [Makefile:5607: cleanall] Error 2
  4. *** [Makefile(3151,0) Error: linker: cleanlaz] Error 2
Valid error 'coz no carbon folder found in interfaces...
But Build works with original parameters.

 

TinyPortal © 2005-2018