Is it possible to have multiple windows, and bring on window in front from another, optionally with parameters? In my GUI the menu item “New window” is inactive/grey. Regards Arnar Dagsson

asked 15 Apr '13, 05:23

ArnarDagsson's gravatar image

ArnarDagsson
114
accept rate: 0%


Hi Arnar,

In my GUI the menu item “New window” is inactive/grey.
In Formspider, there are two types of window;

  • mainFrame: The window which contains the application, it's the default start of any Formspider application. A Formspider application can have only one mainFrame.
  • dialog: A general container window similar to Microsoft(R) Windows(TM) dialog. A Formspider application can have and display multiple dialogs at the same time.

It's normal that the menu item “New window” is inactive/grey in the Formspider IDE(GUI) since the window is not a Formspider object. You can create either a mainFrame or a dialog object as a window. You have to expand the "Windows" node and then right-click on "Dialogs" node to see the menu item active.

Is it possible to have multiple windows, and bring on window in front from another, optionally with parameters?
Yes, as I mentioned above, it's possible to have multiple windows using Formspider dialogs. You can display a dialog through the api_dialog.setVisible API. A Formspider dialog may be modal or not modal, you can set this property using the modal attribute of the dialog. By default, a dialog is modal.

If the dialog is modal, it will be brought in front of all windows by the framework when it's displayed through the api_dialog.setVisible API call. If it's not modal, it will be brought in front of all not modal windows.

Therefore in your case, you can define your dialogs as modal and use api_dialog.setVisible API to bring a dialog in front from another.

Hope this helps,
Ibrahim

link

answered 15 Apr '13, 06:34

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9
×6
×6

Asked: 15 Apr '13, 05:23

Seen: 1,018 times

Last updated: 15 Apr '13, 06:34


© Copyright Gerger 2017