× General Purpose Components and Libraries, discussions, problems and suggestions

Question TRxDateEdit problem

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #1929 by ExDatis
TRxDateEdit problem was created by ExDatis
RxDateEdit and DbDateEdit on Rx pages, have a property - Text (I guess that property is a mask, e.g. ' / / '), but the ObjectInspector failed to modify the value.
Edit the property in source code, i wasn't tryed. Opinions? Is it possible that text is a mask of default date format(user settings)?
Thanks.

current mask: !99/99/9999;1; I need: !99.99.9999;1;
OS XUbuntu 12.4 32bit CT2.5
Last edit: 10 years 3 months ago by ExDatis.

Please Log in or Create an account to join the conversation.

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago #1930 by ExDatis
Replied by ExDatis on topic Re: TRxDateEdit problem
If one want to know, I got a complete explanation ( Lazarus forum - Ludob), citation:
RxDateEdit is a descendant of TCustomMaskEdit so Text is the value before application of EditMask.
EditMask is protected in TCustomMaskEdit and RxDateEdit doesn't make it public or published.
You could create a descendant of RxDateEdit (or change the RxDateEdit interface) and make EditMask public. RxDateEdit has a virtual procedure UpdateMask but that fills in EditMask which isn't accessible from the outside. Overriding UpdateMask is no good. It has also a public function GetDateMask that returns the mask that UpdateMask uses but it is a static function that can't be overridden.

Please Log in or Create an account to join the conversation.