Recent

Author Topic: TRxDateEdit problem  (Read 2996 times)

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
TRxDateEdit problem
« on: May 06, 2012, 03:11:09 pm »
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

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: TRxDateEdit problem
« Reply #1 on: May 06, 2012, 05:06:11 pm »
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.

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: TRxDateEdit problem
« Reply #2 on: May 07, 2012, 07:11:31 am »
   Thank you very much, Ludob!

 

TinyPortal © 2005-2018