Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Disable moving object
 Post subject: Disable moving object Post rating: 0   New post Posted: Thu 04 Jul, 2013, 23:07 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Thanks for the reply.

I have some new question. I hope it is not a problem to post them still in this thread. If it is an issue, just let me know and I create separate topics for them.

So,
1) Is it possible that I disable the move function of a vertical bar? I know I can lock the chart object, but locking is also preventing the selected() function to fire. So that is (to lock) is not an option for me.
Tried this, but I guess this moved() is called after the chart object is moved. So this was not preventing the line to be moved with the mouse after double-click on it.
vLine.setChartObjectListener(new ChartObjectAdapter() {
    @Override
    public void moved(ChartObjectEvent e) {
        return;
    }
}


2) I have some other chart objects (like Screen Labels and Text), and my vertical lines are in front of them (in the Z-depth) on the chart. Can I organize bring forward, bring backward on chart objects? I want my Screen Labels to be in front of my vertical lines, and maybe I want the vertical lines behind the bars/candles. Is this possible? If yes, how?

Thanks in advance.


 
 Post subject: Re: Disable moving object Post rating: 0   New post Posted: Fri 05 Jul, 2013, 17:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
tcsabina wrote:
1) Is it possible that I disable the move function of a vertical bar? I know I can lock the chart object, but locking is also preventing the selected() function to fire. So that is (to lock) is not an option for me.
Tried this, but I guess this moved() is called after the chart object is moved. So this was not preventing the line to be moved with the mouse after double-click on it.
There is no such hybrid-approach available (i.e. selecting locked objects or disabling movements of unlocked ones).
tcsabina wrote:
2) I have some other chart objects (like Screen Labels and Text), and my vertical lines are in front of them (in the Z-depth) on the chart. Can I organize bring forward, bring backward on chart objects? I want my Screen Labels to be in front of my vertical lines, and maybe I want the vertical lines behind the bars/candles. Is this possible? If yes, how?
There is no such bring-to-front/send-to-back feature in the platform as well.


 

Jump to:  

  © 1998-2026 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com