Readonly MemoView
Andr?© Ramos
Portugal
how can i put a MemoView with dataset and datafield without allow user to change it?
I'm adding MemoViews to a report in run-time with name of selected field from table of certain Database but when i put mouse over the object it is showing a dropdown and user can change field. i don't want that user can change the field, only move de object and change same colors and sizes.
regards,
Andr?©
I'm adding MemoViews to a report in run-time with name of selected field from table of certain Database but when i put mouse over the object it is showing a dropdown and user can change field. i don't want that user can change the field, only move de object and change same colors and sizes.
regards,
Andr?©
Comments
i've already try that with code:
lMemo.Restrictions := [{rfDontModify, rfDontSize, rfDontMove,} rfDontDelete, rfDontEdit];
Can't restrict "modify" because i want that user can change text align ( for example)
If the Dataset of MasterData is <> nil user is allowed to change the field and i don't want that.
If i put "lMasterData.DataSet := nil;" user can not change the field and it behaves like a label.