From 9bc6a7a6964485c23a0c99385add86e24a1a5b39 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 20 Mar 2019 22:45:15 +0100 Subject: [PATCH] Tab Button --- BollingerBandsPanel.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BollingerBandsPanel.js b/BollingerBandsPanel.js index 0fce812e2..12a7a9191 100644 --- a/BollingerBandsPanel.js +++ b/BollingerBandsPanel.js @@ -17,6 +17,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () container.frame.containerName = "Bollinger Band Panel"; let currentBand; + let panelTabButton return thisObject; @@ -28,12 +29,19 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () thisObject.container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 3; thisObject.container.frame.position.y = viewPort.visibleArea.bottomLeft.y - thisObject.container.frame.height; + panelTabButton = newPanelTabButton() + panelTabButton.parentContainer = thisObject.container + panelTabButton.container.frame.parentFrame = thisObject.container.frame + panelTabButton.initialize() } function getContainer(point) { var container; + container = panelTabButton.getContainer(point) + if (container !== undefined) { return container } + /* First we check if this point is inside this space. */ if (this.container.frame.isThisPointHere(point, true) === true) { @@ -63,6 +71,7 @@ function newAAMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () plotCurrentBandInfo(); + panelTabButton.draw() }