@magic-xpa/gui 4.900.0-dev490.101 → 4.900.0-dev490.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13381,15 +13381,17 @@ class MgControlBase extends GuiControlPropertyAdapter {
|
|
|
13381
13381
|
async ZoomButtonInitialization() {
|
|
13382
13382
|
if (this.isTextControl() && this.checkIfExistProp(PropInterface.PROP_TYPE_CONNECTED_ZOOM_CONTROL)) {
|
|
13383
13383
|
let connectedButton = this.Form.CtrlTab.GetControlByIsn((await (await this.getProp(PropInterface.PROP_TYPE_CONNECTED_ZOOM_CONTROL)).getValueInt()));
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13384
|
+
if (connectedButton) {
|
|
13385
|
+
let imageFileName = null;
|
|
13386
|
+
if (connectedButton.IsImageButton() && connectedButton.PropertyExists(PropInterface.PROP_TYPE_IMAGE_FILENAME)) {
|
|
13387
|
+
imageFileName = await (await connectedButton.getProp(PropInterface.PROP_TYPE_IMAGE_FILENAME)).getValue();
|
|
13388
|
+
if (!Misc.IsWebUrl(imageFileName))
|
|
13389
|
+
imageFileName = "./assets/images/" + imageFileName;
|
|
13390
|
+
Commands.addOperationWithLine(CommandType.SET_STYLE, this, 0, MagicProperties.ImageFile, imageFileName);
|
|
13391
|
+
}
|
|
13392
|
+
this.ConnectedControl = connectedButton;
|
|
13393
|
+
connectedButton.ConnectedControl = this;
|
|
13394
|
+
}
|
|
13393
13395
|
}
|
|
13394
13396
|
}
|
|
13395
13397
|
}
|