Database Simple Components lazarus / 16-Databases ---------------------------------------------------------------------- xinyiman · 2010-02-23 08:50 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! ---------------------------------------------------------------------- xinyiman · 2010-10-21 03:24 I updated the package, no matter who uses it is advised to re- download! Hello ---------------------------------------------------------------------- xenblaise · 2010-10-21 10:04 QuoteI 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 · 2010-10-21 10:13 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! ---------------------------------------------------------------------- xenblaise · 2010-10-21 14:31 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. Thanks, don't delete the link, I'll be glad to test/use it. ---------------------------------------------------------------------- xinyiman · 2010-11-23 10:56 Update: Now I insert new function SetValueOfKey into Combo! ---------------------------------------------------------------------- xinyiman · 2011-02-14 07:05 Insert Example: www.liuheschool.com/informatica/Lazarus/Esempi/Esempio_DBSimple.zip