Boxes!

Post Reply
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Boxes!

Post by gaheitman »

Inspired by the post by youcrazykids, I decided to see what other fun things I can do with boxes on the screen. I took a look at my screen and decided I needed to snazz up the news display from FFCalH. I like to have the news in the lower left corner, but to do that with the code made the info display from bottom to top instead of top to bottom. So....

I've created FFCalH-Boxed, which creates a box using the technique in http://www.stevehopwoodforex.com/phpBB3 ... t=79#p1156, and then remaps all the output onto the box. If you highlight the top box by double-clicking it, you can drag it anywhere on your screen. Assuming the ticks are coming in fast enough, the shadow box and the text will follow your box around the screen. The location will then be fixed until you delete the box or restart your terminal.

I have marked the areas in the code that I changed with "GAH", though I didn't comment very much. I did learn that Empty4 displays text on the screen in layers based on alphabetical order. So if you want something underneath other text on screen, name it with a double underscore at the beginning (or something similar).

If you want to play with this, you might want to wait until asia opens at least. The ticks are few and far between and the dragging is fairly unimpressive without ticks. You can always right click on your chart and choose refresh to force the synch after a move.

Enjoy. My next project will be to create a floating indicator that displays multiple bars from another chart. That may actually be useful. :D Or perhaps I'll add some global variables to this one to make the location persistent.

EDIT: I fixed a bug where the title of the upcoming event was under the box since it started with a "2". Also, added option to ShowAllHighs, which will display all high news items regardless of currency.

George
pic_05 2011-11-30 16.40.gif
You do not have the required permissions to view the files attached to this post.
Last edited by gaheitman on Wed Dec 07, 2011 9:57 am, edited 1 time in total.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Boxes!

Post by SteveHopwood »

Incredible.

George, you blow me away.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Coders Hangout”