Recent

Author Topic: Resize component at run time?  (Read 2438 times)

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Resize component at run time?
« on: October 01, 2021, 01:54:33 am »
Is there any existing components that allow my user to resize a component at run time?  Currently I am using a panel... and whatever component i want resized i have inside the panel with align set to client.  I have a half-assed working implementation.  I have a small button in the bottom to use as a gripper.  But i am ending up with a lot of code to do things that I am now wondering if it already exists in one of these components?

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Re: Resize component at run time?
« Reply #1 on: October 01, 2021, 02:51:53 am »
I have been playing around some more... a TSplitter would almost do what i want except it cannot do horizontal and vertical at the same time.  I almost had something worked out using the tsplitter though!  would have been too easy... ;)

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Re: Resize component at run time?
« Reply #2 on: October 01, 2021, 05:22:40 am »
I think i found what I need right here on the forum.  I will continue going through https://forum.lazarus.freepascal.org/index.php?topic=38824.0 tomorrow.... if it does what i need i will remove this post.

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Resize component at run time?
« Reply #3 on: October 01, 2021, 05:44:53 am »
No need to remove it. Others may find it useful.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Resize component at run time?
« Reply #4 on: October 01, 2021, 11:48:16 am »
Is there any existing components that allow my user to resize a component at run time?
Take a look at JvDesigner demo from jvcllaz, cyRunTimeResizeDemo from pl_cindy. Both packages can be found in OPM. There was also pl_exdesign package with full IDE runtime form designer and object inspector (including dragging and resizing), but because of potential license issue that package is no longer available (details at https://forum.lazarus.freepascal.org/index.php/topic,48853.msg353818.html#msg353818).
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018