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.

ohlc widget looses its newlines and changes shape
 Post subject: ohlc widget looses its newlines and changes shape Post rating: 0   New post Posted: Wed 21 Mar, 2012, 15:36 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
I am using an IOhlcChartObject with all parameters set to invisible and only user-defined messages (inserted with the addUserMessage(label, value, color)).

The OHLC widget's initial appearance is shown in attached "ohlc box normal.png".
Attachment:
ohlc box normal.png [42.91 KiB]
Downloaded 279 times


However, after some updates (typically about 10 or 20 or so) the widget's appearance changes so that all text is on one line, as shown in "ohlc box flattened.png" (as if the text looses all its newlines).
Attachment:
ohlc box flattened.png [45.39 KiB]
Downloaded 332 times


It is possible for me to resize the widget manually and restore it to its original state, but of course it is a nuisance to do so every time.


 
 Post subject: Re: ohlc widget looses its newlines and changes shape Post rating: 0   New post Posted: Wed 21 Mar, 2012, 15:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Have you tried using the following method?
https://www.dukascopy.com/client/javadoc/com/dukascopy/api/drawings/IOhlcChartObject.html#setAlignment(com.dukascopy.api.drawings.IOhlcChartObject.OhlcAlignment)


 

Jump to:  

  © 1998-2025 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