Recent

Author Topic: Visualize component  (Read 730 times)

Jake012345

  • Sr. Member
  • ****
  • Posts: 270
  • Knowledge is the key
Visualize component
« on: June 07, 2020, 11:44:45 am »
Hello!

I want to visualize a non visual component (for example synapse/TTCPBlockSocket or TThread ...)
So how can I do it?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Visualize component
« Reply #1 on: June 07, 2020, 11:49:34 am »
You may be able to get a TProgressBar to give you an indication of the non-visual component's existence if you can work out a suitable event to hook its Position property to.
Make sure you provide for the situation that the non-visual component does not exist (i. e. is Nil).

cdbc

  • Hero Member
  • *****
  • Posts: 1026
    • http://www.cdbc.dk
Re: Visualize component
« Reply #2 on: June 07, 2020, 02:03:56 pm »
Hi
1) Have a look at this: https://sourceforge.net/p/visualsynapse/wiki/Home/   ;)

2) You can put a TThread in a visual component, but WHY? Threads are "workhorses", add to that, the LCL is mostly not thread-safe. In my optic, it's asking for trouble...  %)

Hth - Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Jake012345

  • Sr. Member
  • ****
  • Posts: 270
  • Knowledge is the key
Re: Visualize component
« Reply #3 on: June 07, 2020, 03:33:21 pm »
The Thread was just an example

I just want to know how can I add visual handles for a component. Just the method. If I need it if future, I will know.

cdbc

  • Hero Member
  • *****
  • Posts: 1026
    • http://www.cdbc.dk
Re: Visualize component
« Reply #4 on: June 07, 2020, 03:38:39 pm »
Hi
"Use the source - Luke",
Ie.: download the visual-synapse components and study, what they did...  ::)
Hth Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018