Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SC.say() - ModalMask behaviour depended on independent code

$
0
0
- SC.say() does not have argument "Dialog dialogProperties"
- if you call SC.say() first time, it's without ModalMask
- if you call a dialog with ModalMask, then behaviour of next SC.say() will change.

Solution:
- the best would be to add argument "Dialog dialogProperties" to SC.say()

Sample code:
Code:

SC.say("SAY dialog", "SAY dialog - first call (no ModalMask)",
  new BooleanCallback()
  {
      @Override
      public void execute(Boolean aValue)
      {
        Dialog dlgProperties = new Dialog();
        dlgProperties.setShowModalMask(Boolean.TRUE);
                       
        SC.warn("Any dialog with ModalMask",
            "After this dialog, ModalMask in SAY dialog will be present",
            new BooleanCallback()
            {
              @Override
              public void execute(Boolean aValue)
              {
                  SC.say("SAY dialog", "SAY dialog - same call, but ModalMask alredy present");
              }
            },
            dlgProperties);
      }
  });


Viewing all articles
Browse latest Browse all 4756

Trending Articles