Recent

Author Topic: Database Simple Components  (Read 9757 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Database Simple Components
« on: February 23, 2010, 09:50:56 am »
I designed two new components, I see it very convenient and useful, are the TDBSimpleComboBox and TDBSimpleListBox allow you to see the contents of a table, query, using the DataSource. Are set which fields you want to see what components and set the key value, all thanks to a few simple lines of code. Inside the zip file you download there is also a folder with examples. Tell me what you think and if there is useful, I need so many of the components so easy to use to interact with a db.
The only sin is in the component TDBSimpleComboBox run on Ubuntu 9.10 (other Linux systems I have not tested) because the source of the content of the combobox is different from the font of the combobox popup when I can figure out how to fix this bug that makes it impossible to align multiple fields within the combobox will update the package. The file can be downloaded at: http://www.liuheschool.com/informatica/Lazarus/TDSimpleComponents/TDBSimpleComponents.zip

I forgot that the components are added in Data Controls and I could not show him the pictures that are inside the file.zip, even though I followed the thread and to sign documents online!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Database Simple Components
« Reply #1 on: October 21, 2010, 05:24:03 am »
I updated the package, no matter who uses it is advised to re-download! Hello  :)
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Database Simple Components
« Reply #2 on: October 21, 2010, 12:04:53 pm »
Quote
I designed two new components,

Sorry if I misunderstood your post.

You designed it?
I dont understand.
You mean you make your own widget code for this component?
Im interested of how you make that component?
Can you share your info in making a component.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Database Simple Components
« Reply #3 on: October 21, 2010, 12:13:48 pm »
http://wiki.lazarus.freepascal.org/How_To_Write_Lazarus_Component

 ;)

I simply inherited classes and then I added carriers in the private sector, and the functions I've managed. Simple!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Database Simple Components
« Reply #4 on: October 21, 2010, 04:31:14 pm »
Oh, Thank you, you mean to say you've created a new component and want to share with us. It's called TDBSimple?
I thought your creating a widget. :D

Thanks, don't delete the link, I'll be glad to test/use it.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Database Simple Components
« Reply #5 on: November 23, 2010, 11:56:26 am »
Update: Now I insert new function SetValueOfKey into Combo!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: Database Simple Components
« Reply #6 on: February 14, 2011, 08:05:43 am »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018