Difference between revisions of "jujiboutils"

From Free Pascal wiki
(Add working system section)
(Add more info)
Line 58: Line 58:
  
 
'''Notes about Date and time input:'''
 
'''Notes about Date and time input:'''
 +
 +
Valid date separators:  '''. , -''' and '''/'''  ie: 1.1.2011
 +
 +
Valid time separator:  ''':''' ie: 10:20:45
  
 
In example, date: '01/02/2011'  if you input .3,  the result date will be '01/03/2011'. So for a system date format 'dd/mm/yyyy' 2.  will set the day to two  .5 will set the month to May  and ..2012 will set the year to 2012. Of course you can supply none, one, two or three values
 
In example, date: '01/02/2011'  if you input .3,  the result date will be '01/03/2011'. So for a system date format 'dd/mm/yyyy' 2.  will set the day to two  .5 will set the month to May  and ..2012 will set the year to 2012. Of course you can supply none, one, two or three values

Revision as of 13:50, 14 October 2011

About

Set of components to input and validate different kinds of data, floats, dates, etc. while working with db and non db controls.

Authors and contributors

Julio Jiménez Borreguero - jujibo at gmail dot com.

Jesús Reyes A.

License

The Jujiboutils Project files are distributed under the GNU Library General Public License (see the file COPYING.LGPL) with the following modification:

As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

Download

The latest stable release can be found at. coming soon

Latest sources using SVN: svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/jujiboutils

Bug reports

Bug reports and feed back: jujibo at gmail dot com

Freenode IRC channels: #lazarus-es, #lazarus-ide


Working system

The components have been tested using:

  • Linux 32 and Linux 64
  • Windows 32
  • Zeos 7 (trunk)
  • Sqldb
  • IBX for Lazarus
  • Memdataset

Locate the components

Non-DB aware: Additional-light.png

TJLabeledIntegerEdit: input of integer numbers. Main properties: DisplayFormat, EditLabel.Caption, LabelPosition and Value. DisplayFormat example value: '0 ºC'

TJLabeledFloatEdit: input of float numbers. Main properties: Decimals, DisplayFormat, EditLabel.Caption, LabelPosition and Value. DisplayFormat example value: '#,0.00'

TJLabeledCurrencyEdit: input of currency numbers. Main properties: Decimals, DisplayFormat, EditLabel.Caption, LabelPosition and Value. DisplayFormat default value is '#,0.00' and Decimals=2

TJLabeledDateEdit: input of dates values. Main properties: Decimals, DisplayFormat, EditLabel.Caption, LabelPosition and Value.

TJLabeledTimeEdit: input of time values. Main properties: Decimals, DisplayFormat, EditLabel.Caption, LabelPosition and Value.

TJLabeledDateTimeEdit: input of date-time values. Main properties: Decimals, DisplayFormat, EditLabel.Caption, LabelPosition and Value. The date and time must be separated by a space

Widgets in action: Example-nondb.png

Notes about Date and time input:

Valid date separators: . , - and / ie: 1.1.2011

Valid time separator: : ie: 10:20:45

In example, date: '01/02/2011' if you input .3, the result date will be '01/03/2011'. So for a system date format 'dd/mm/yyyy' 2. will set the day to two .5 will set the month to May and ..2012 will set the year to 2012. Of course you can supply none, one, two or three values


DB-aware: DataControls-light.png

These components work in the same way that Non-DB aware, except TJDBGridControl.

TJDBGridControl: input of db values in a grid. Auto detects type of data. Specialized cell editors for types: ftString, ftFloat, ftCurrency, ftBCD, ftDate, ftTime and ftDateTime. Special properties in columns like: Decimals (for ftFloat and ftCurrency), MaxLength (for ftString). Automatic decimals/scale detection for ftBCD. Allows null dates, times and date-times (empty values)

Widgets in action: Example-db.png

TJDBGridControl in action: Example-grid.png