Recent

Author Topic: TTICalendar, TTIGrid, TTIMultiPropertyLink  (Read 2546 times)

nana232

  • New Member
  • *
  • Posts: 40
TTICalendar, TTIGrid, TTIMultiPropertyLink
« on: January 19, 2018, 07:18:22 am »
Anybody has some example of using these controls?

I don't know what kind of variable can be linked with these controls.

 :)
Lazarus 1.8.4 Win10 32bit

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: TTICalendar, TTIGrid, TTIMultiPropertyLink
« Reply #1 on: January 19, 2018, 08:32:33 am »
Isn't there any example directory or website for these tools?
Where did you find them?
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: TTICalendar, TTIGrid, TTIMultiPropertyLink
« Reply #2 on: January 19, 2018, 09:40:08 am »
These are controls found on the RTTI Component Palette page.
There are 4 example programs in .../lazarus/components/rtticontrols/examples

From the sources:

  Author: Mattias Gaertner

  Abstract:
   Provides LCL controls that access properties of TPersistent objects via RTTI
   - the FreePascal Run Time Type Information.
   Every published property can be edited in the Object Inspector. There you
   have a TOIPropertyGrid working with TEdit, TComboBox and TButton.
   These controls extend the possibilities to edit single properties and the
   developer can choose how to represent the property.     

I find the TTIGrid an especially useful component when testing runtime behaviour of new GUI components, because it enables you to use a single pre-built control to quickly edit properties of some new control in a test-bed app, without having to register the control and put it on the component palette in order to check its behaviour in the Object Inspector.
Unless you are much more skilled than me, your brand new components usually have major bugs, and putting them on the component palette for testing can destabilise the entire IDE. The TTIGrid lets you test runtime behaviour quickly and easily without jeopardising the development environment itself.
The worst that can happen is that your testing project crashes; but Lazarus itself is completely OK, and you don't have the hassle of trying to uninstall a buggy component from an unstable IDE.
« Last Edit: January 19, 2018, 09:51:50 am by howardpc »

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: TTICalendar, TTIGrid, TTIMultiPropertyLink
« Reply #3 on: January 19, 2018, 10:19:02 am »
I find the TTIGrid an especially useful component when testing runtime behaviour of new GUI components, because it enables you to use a single pre-built control to quickly edit properties of some new control in a test-bed app, without having to register the control and put it on the component palette in order to check its behaviour in the Object Inspector.
Thank you. Very nice use case which didn't cross my mind  ::)
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

nana232

  • New Member
  • *
  • Posts: 40
Re: TTICalendar, TTIGrid, TTIMultiPropertyLink
« Reply #4 on: January 19, 2018, 10:36:05 am »
Thank you so much.

 :)
Lazarus 1.8.4 Win10 32bit

 

TinyPortal © 2005-2018