Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Closing SC window

    Is it possible to programmatically close the SC window that's generated after the command:

    SC.say("some text");

    In particular, this closing needs to occur within a callback routine that may return at any time (ie the callback routine may return seconds after the above SC.say("some text") command has executed, or the callback may return minutes later), so the SC window may have <i>already</i> been closed by the user.

    I tried SC.clearPrompt(), but that didn't work. Also, the documentation didn't provide a "destroy" or "close" method. I looked at the other methods, but nothing seemed appropriate.

    Miscellaneous Infrastucture Details:
    ==================================
    OS: Windows XP Pro
    IDE: MyEclipse 10.0 with Google Plugin for Eclipse (2.5)
    SmartGWT Pro 3.0 (Purchased Licence)
    Browser: Mozilla Firefox 4.0.1
    GWT SDK: 2.4.0
    Sun JDK 1.6.0_27

    #2
    No. Use the Dialog class directly if you need something more than SC.say() - it's very easy to replicate the built-in dialogs and then add your own functionality.

    Comment

    Working...
    X