2

I am building a cdf application,which has multiple screens,every screen was linked to another screen.

Right now I am using CreateDialog. Are there any other options of displaying multiple screens to users?

István Zachar
  • 47,032
  • 20
  • 143
  • 291
subbu
  • 2,304
  • 1
  • 13
  • 32

1 Answers1

5

Since all windows in Mathematica are basically Notebook objects (notebook windows, palettes, dialog windows, etc.), one can use the more general

CreateWindow[DialogNotebook[...]]

approach, which is a bit more customizable than CreateDialog. The other option is to use the more specific Dialog function, but it is rather limited when it comes to designing a mutli-windowed gui.

The other way is to abuse the floating element of e.g. ActionMenu:

ActionMenu[Graphics[Circle[], ImageSize -> 50], {
  Pane[
   "This is a window that can be used to display text when the circle 
    is clicked.", {300, 200}
  ]}, Appearance -> None]

Mathematica graphics

Note that this won't stay if any window is clicked, but is useful to display material temporarily.

István Zachar
  • 47,032
  • 20
  • 143
  • 291