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:18AM
    You may set TfrxMemoView.Restrictions
  • Andr?© RamosAndr?© Ramos Portugal
    edited 9:18AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.