Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11914

Re: How to lock down a Dynamic object in a report

From John Fultz <jfultz@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to lock down a Dynamic object in a report
Date 2012-09-30 00:23 +0000
Message-ID <k483dd$g95$1@smc.vnet.net> (permalink)
References <20120929065754.5FB846855@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Many controls take the Enabled option which prevents user actions from affecting them.  That includes LocatorPane.  E.g.,

DynamicModule[{lst = {{.5, .5}}},
 LocatorPane[Graphics[{}, Axes -> True, PlotRange -> {{0, 1}, {0, 1}}],
  Enabled -> False, Appearance -> Framed["can't be moved"]]]

Sincerely,

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.



On Sep 29, 2012, at 1:57 AM, dr DanW <dmaxwarren@gmail.com> wrote:

> Is there a way to lock a Dynamic object so it does not respond to users? I know it sounds funny, but I have created a LocatorPane to organize items in a database.  When I publish my weekly report as a CDF, the same LoacatoPane also serves as a nice graphic of the current state of the database.  However, the reader can accidentally scramble the Locators or try to apply the changes to the database which of course serves up errors in CDFReader.  Solutions that don't work:
>
> * Deploy only locks down editing of graphics, but controls still respond.
> * Publishing the report as a PDF won't work because I use cell grouping and OpenerViews elsewhere in the report.
> * Recreating the LocatorPane as a Graphic is undesirable because I put a lot of work into it, and I don't want to have to maintain two complex functions like that.
>
> So, is there a wrapper like Deploy that I can use around my LocatorPane when I want to publish it as a static object?
>
> Daniel
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to lock down a Dynamic object in a report John Fultz <jfultz@wolfram.com> - 2012-09-30 00:23 +0000

csiph-web