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


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

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

Started byJohn Fultz <jfultz@wolfram.com>
First post2012-09-30 00:23 +0000
Last post2012-09-30 00:23 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#11914 — Re: How to lock down a Dynamic object in a report

FromJohn Fultz <jfultz@wolfram.com>
Date2012-09-30 00:23 +0000
SubjectRe: How to lock down a Dynamic object in a report
Message-ID<k483dd$g95$1@smc.vnet.net>
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
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web