Readonly MemoView

Andr?© RamosAndr?© Ramos Portugal
edited July 2012 in FastReport 4.0
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?©

Comments

  • gpigpi
    edited 9:56PM
    You may set TfrxMemoView.Restrictions
  • Andr?© RamosAndr?© Ramos Portugal
    edited 9:56PM
    gpi wrote: »
    You may set TfrxMemoView.Restrictions

    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.

Leave a Comment