recordviewpanel fields readonly property
Hi,
in Delphi 12 app Fmx I have some TDateTime fields in a recordviewpanel which I have set as readonly,
but when the user touch these fields, the date-time dialog to edit the field popup always...
How can avoid this popup ?
BR
-
There is no property setting for this to disable the popup calendar. It won't allow the user to change the date however.
The only workaround would be to drop in your own TwwCalendaredit and set it as the custom control for the record view item. Then you can set its readonly to true and to prevent the picker from showing you can set the stylelookup to 'editstyle'
Or another option instead of setting stylelookup is to sysutils.abort in your OnDropDown of the calendar edit.
-Roy
Please sign in to leave a comment.
Comments
1 comment