Results 1 to 3 of 3

Thread: How to attach text viewer to "Open (Read-Only)" action in li

  1. #1
    Jan Hovius Guest

    How to attach text viewer to "Open (Read-Only)" action in li

    Hello,

    I've succesfully registered a new viewType within the dfII environment
    using deRegApp i.c.w. entries in the data.reg file and all works
    correct upon creating a new view and opening it within the library
    manager. Only problem is: there is no difference in behaviour between
    the library manager actions "Open" and "Open (Read-Only)", no matter
    which of these I select they both open the view in edit mode within the
    external application I registered. Since the resultfile is text-based
    (HDL code) I would like to differentiate between opening in edit mode
    ("Open") and read-only mode ("Open (Read-Only)") such that in case of
    the latter it opens the text viewer (the same one as used for verilog
    views per default). Is this possible at all and if so what is the clue?

    Thanks for your help,

    Jan.

  2. #2
    Andrew Beckett Guest
    On 23 Nov 2005 01:41:17 -0800, "Jan Hovius" <Jan.Hovius@nsc.com> wrote:

    Hello,

    I've succesfully registered a new viewType within the dfII environment
    using deRegApp i.c.w. entries in the data.reg file and all works
    correct upon creating a new view and opening it within the library
    manager. Only problem is: there is no difference in behaviour between
    the library manager actions "Open" and "Open (Read-Only)", no matter
    which of these I select they both open the view in edit mode within the
    external application I registered. Since the resultfile is text-based
    (HDL code) I would like to differentiate between opening in edit mode
    ("Open") and read-only mode ("Open (Read-Only)") such that in case of
    the latter it opens the text viewer (the same one as used for verilog
    views per default). Is this possible at all and if so what is the clue?

    Thanks for your help,

    Jan.
    Hi Jan,

    My apologies for not replying to the email you sent me about this.

    The triggers that get called when the application is opened (for example,
    the dataTrigger) get passed a disembodied property list with a slot called
    accessMode. So for example, you can do:

    procedure(myDataTrigger(args)
    case(args->accessMode
    (("a" "w")
    ... do the editable thing ...
    )
    ("r"
    ... do the readonly thing...
    )
    (t
    ... something bad happened ...
    )
    ) ; case
    ) ;procedure

    Something like that.

    Hope this helps!

    Regards,

    Andrew.

  3. #3
    Jan Hovius Guest
    Andrew,

    Thx! This did the trick.

    Rgds,

    Jan.

Similar Threads

  1. Replies: 0
    Last Post: 11-07-2005, 05:10 PM
  2. can this be modified to open as read-only?
    By James Maeding in forum Customization
    Replies: 0
    Last Post: 03-18-2005, 04:04 PM
  3. Force Read-only open
    By dean_bourke in forum Customization
    Replies: 1
    Last Post: 02-17-2005, 04:41 PM
  4. how to force Edrawing viewer to open maximized?
    By Zander in forum SolidWorks
    Replies: 2
    Last Post: 02-10-2005, 11:29 PM
  5. action string
    By brewgle in forum MicroStation
    Replies: 3
    Last Post: 04-07-2004, 05:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum