I want to make CDF WindowSize as constant so that the end user can not resize it either by dragging Window or by maximizing it.
Is there any in built Mathematica function to do this?
|
I want to make Is there any in built |
|||||
|
|
You can achieve it by removing For example, we generate a resizable standalone CDF and open it in Mathematica:
Then we remove the
Note the changing at the lower right corner. Now the window size of
Caution As @VitaliyKaurov warned in this comment, the
So please use it with vigilance. |
|||||||||
|
|
First of all you need to be careful. For example deploying large enough content of fixed window size would create problems on small computer screens. That warning being said, this is what you can do. Imagine this is your interactive content:
You can take advantage of dialog-type of Mathematica notebook using
This will create Standalone.cdf CDF file in your default directory which you can find by running
The WindowSize is very important, so you should read corresponding documentation articled that I linked. One of the most handy settings, besides fixed size, is actually scaled with respect to screen size settings. To Make a window that occupies one-third of the screen width and all of the screen height:
|
||||
|
|
|
Try wrapping the output of the Manipulate in Panel. This should enable you to use See the documentation:
This will enable you to control the size of the CDF within the CDF Window. To better control the size of the notebook window itself look at the option inspector:
and the |
||||
|
|