SmartClient Version: v12.1p_2021-10-22/PowerEdition Deployment (built 2021-10-22)
This should be easy. What is the control/setting that will ensure that a dismiss icon in a Notification widget is not placed in the middle of the message?
I'm seeing this result:

Using this code:
This should be easy. What is the control/setting that will ensure that a dismiss icon in a Notification widget is not placed in the middle of the message?
I'm seeing this result:
Using this code:
Code:
Label warnLabel = new Label();
warnLabel.setBackgroundColor("Orange");
warnLabel.setBorder("3px solid black");
warnLabel.setShowShadow(true);
warnLabel.setWrap(false);
warnLabel.setAlign(Alignment.CENTER);
warnLabel.setMargin(10);
NotifySettings warnSettings = new NotifySettings();
warnSettings.setCanDismiss(Boolean.TRUE);
warnSettings.setPosition(EdgeName.T); // top edge
warnSettings.setAppearMethod(NotifyTransition.SLIDE);
warnSettings.setDisappearMethod(NotifyTransition.FADE);
warnSettings.setMessagePriority(Notify.WARN);
warnSettings.setLabelProperties(warnLabel);
warnSettings.setAutoFitWidth(true);
warnSettings.setDuration(10 * 1000); // 10 seconds
Notify.addMessage("Run Loading not completed. No comparison allowed", null, null, warnSettings);
Comment