Recent

Author Topic: Data controls based on the field editor...  (Read 4476 times)

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Data controls based on the field editor...
« on: April 02, 2018, 10:15:07 pm »
Hi,

How to automatically create
data controls based on the field editor like in Delphi?

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: Data controls based on the field editor...
« Reply #1 on: April 03, 2018, 03:27:03 am »
Is there this feature?

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Data controls based on the field editor...
« Reply #2 on: April 03, 2018, 03:59:22 am »
Are you talking about this?
-------------------
How to replace the field type and value in dbgrid?
http://forum.lazarus.freepascal.org/index.php/topic,40674.msg281051.html#msg281051
-------------------

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Data controls based on the field editor...
« Reply #3 on: April 03, 2018, 04:56:13 am »
or drag and drop between the fields editor and the form? some sort of function that returns a control class to dynamically create at runtime or is it a design time only request?
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: Data controls based on the field editor...
« Reply #4 on: April 03, 2018, 08:42:11 am »
Hi,

How to automatically create
data controls based on the field editor like in Delphi?
Can my Opel drive automatically as a Tesla.
Please specify you question. @Runtime data controls are created automatically, but you can not use the properties if you have not specified them in code.   
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: Data controls based on the field editor...
« Reply #5 on: April 03, 2018, 01:40:18 pm »
Drag and drop between the fields editor and the form.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Data controls based on the field editor...
« Reply #6 on: April 03, 2018, 03:57:22 pm »
How to automatically create data controls based on the field editor like in Delphi?
It works the same way as in Delphi.

Is there this feature?
Yes, there is.

Drag and drop between the fields editor and the form.
Do it as you would do in Delphi.

What version of Lazarus are you using?

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: Data controls based on the field editor...
« Reply #7 on: April 03, 2018, 04:59:15 pm »
FPC - 3.0.5
Lazarus - 1.8.3 (SVN - Fixes)
Windows 7 - SP 1

Drag the Field Editor onto the Form and nothing happens.

See attached.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: Data controls based on the field editor...
« Reply #8 on: April 04, 2018, 12:41:49 am »
Is there this feature?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Data controls based on the field editor...
« Reply #9 on: April 04, 2018, 12:52:28 am »
Is there this feature?
not to my knowledge
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: Data controls based on the field editor...
« Reply #10 on: April 04, 2018, 06:06:21 am »
Sorry, wcleyton for my misleading information. I was wrong.
I think I have used this feature on Lazarus before, but since it does not work now on Lazarus 1.8.2 (latest stable version), I am not sure any more.

I have just created a bug report or feature request based on this discussion:
0033555: Drag and drop from fields editor to form
https://bugs.freepascal.org/view.php?id=33555

 

TinyPortal © 2005-2018