Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

TRxDateEdit problem 11 years 10 months ago #1929

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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

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

Last edit: by ExDatis.

Re: TRxDateEdit problem 11 years 10 months ago #1930

  • ExDatis
  • ExDatis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 110
  • Thank you received: 9
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.

  • Page:
  • 1