Recent

Author Topic: TDBDateEdit  (Read 16499 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
Re: TDBDateEdit
« Reply #15 on: January 03, 2015, 08:28:00 am »
RX Library needs a serious clean up.

It is so difficult to compile properly across different Lazarus versions and FPC compilers.

The maintainers of that library need to be more organized and more disciplined.

They should look at the yacc source code. Note a chance for naming conflicts
Lazarus 3.0/FPC 3.2.2

LacaK

  • Hero Member
  • *****
  • Posts: 698
Re: TDBDateEdit
« Reply #16 on: January 03, 2015, 10:29:50 am »
The installation problem still exists and should be fixed ASAP. I see 2 ways:
1. I apply the Rx patch and inform Lagunov Aleksey about it.
Just now I have wrote email to Aleksey at his email addres at yandex.ru (I do not know of course if this address is valid)
Let's wait few days If he will react.
I belive (and it seems, that also other users think so), that renaming RxLib TDBDateEdit should be done in all cases.
(regardless if TDBDateEdit will be removed or not)

2. Somebody removes TDBDateEdit.
It is other question: Does we need TDBDateTimePicker and TDBDateEdit together or not ?
Is there any advantage of one component over other or not ?

3. Remove TDBDateEdit and introduce new TDBEditButton as data-aware TEditButton with new property:
ButtonStyle: ebbsCalendar, ebbsDots, wbbsLookup
which will control image on button and behavior.
In database applications is often value in edit box based on selection from any list.
For example: in invoice header, name of customer is selected from list of customers ... then there is edit box and button ... when user clicks button other form with list of customers is opened and user can select customer ...
I think that this kind of DB control will be useful, other opinions about it ?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4603
  • I like bugs.
Re: TDBDateEdit
« Reply #17 on: January 03, 2015, 03:41:25 pm »
Just now I have wrote email to Aleksey at his email addres at yandex.ru (I do not know of course if this address is valid)
Let's wait few days If he will react.
I belive (and it seems, that also other users think so), that renaming RxLib TDBDateEdit should be done in all cases.
(regardless if TDBDateEdit will be removed or not)

Sounds good. If he does not react in one week then I will apply the patch. The installation problem must be fixed in any case.

Quote
3. Remove TDBDateEdit and introduce new TDBEditButton as data-aware TEditButton with new property:
ButtonStyle: ebbsCalendar, ebbsDots, wbbsLookup
which will control image on button and behavior.

I believe it would be accepted if you make it. However I will not be part of that process because I don't know much about the DB controls.
Jesus Reyes and some other developers know more.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12326
  • FPC developer.
Re: TDBDateEdit
« Reply #18 on: January 03, 2015, 03:55:43 pm »
For me what I prefer depends on the target. If i really have to plan something, I like a more picker like solution.

If I just have to enter some date that I get in paper form, I prefer an edit like construct with a date-validator mechanism. Usually in such forms you just enter data and tab through, and having to use the mouse is a detractor.
« Last Edit: January 03, 2015, 08:25:26 pm by marcov »

LacaK

  • Hero Member
  • *****
  • Posts: 698
Re: TDBDateEdit
« Reply #19 on: January 03, 2015, 05:47:51 pm »
Sounds good. If he does not react in one week then I will apply the patch. The installation problem must be fixed in any case.
Aleksey has replied to me email:
"I rename component after new year holiday's."  :)

Jesus Reyes and some other developers know more.
It will be good to discuss it somewhere before I will do it.
I have such component in Delphi, where I use it often.

kapibara

  • Hero Member
  • *****
  • Posts: 649
Re: TDBDateEdit
« Reply #20 on: January 19, 2015, 06:06:18 pm »
I did a SVN checkout right now and updated my Lazarus to revision 47430.

There is still the error message "TDBDateEdit already defined" on Lazarus startup. Is it something I have forgotten to do, or is the component not yet renamed?
Lazarus trunk / fpc 3.2.2 / Kubuntu 24.04 - 64 bit

LacaK

  • Hero Member
  • *****
  • Posts: 698
Re: TDBDateEdit
« Reply #21 on: January 20, 2015, 08:24:03 am »
Do you have downloaded new trunk version of RxFPC ?

kapibara

  • Hero Member
  • *****
  • Posts: 649
Re: TDBDateEdit
« Reply #22 on: January 21, 2015, 12:30:44 am »
Do you have downloaded new trunk version of RxFPC ?

I installed an older RX version by accident. Now its fine, thanks for the hint.
Lazarus trunk / fpc 3.2.2 / Kubuntu 24.04 - 64 bit

 

TinyPortal © 2005-2018