NexusFi: Find Your Edge


Home Menu

 





Removing titlebar and scrollbars in sierra chart windows


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Big Mike with 14 posts (1 thanks)
    2. looks_two ktrader with 13 posts (12 thanks)
    3. looks_3 Ticks Collector with 2 posts (0 thanks)
    4. looks_4 Rui S with 1 posts (1 thanks)
    1. trending_up 9,222 views
    2. thumb_up 14 thanks given
    3. group 6 followers
    1. forum 29 posts
    2. attach_file 7 attachments




 
Search this Thread

Removing titlebar and scrollbars in sierra chart windows

  #1 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275

I made a small study that will remove the titlebar and horizontal scrollbar for a chartwindow to which it is attached, when the chartwindow does not have focus (and bring them back when it gets focus back ofcourse ).

I got the idea from the sierrachart feature request thread.

I have attached both the source and a compiled DLL , as it requires a bit more setup to compile it (it uses the windows api, so the windows.h and libs needs to be present in compile and link paths).

the dll needs to be unpacked from the zipfile.

--ktrader

Attached Files
Elite Membership required to download: ktwindowstyle.cpp
Elite Membership required to download: ktsierra.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
What broker to use for trading palladium futures
Commodities
 
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665

No joke!

This is awesome, can't wait to try it!

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665


@ktrader, it works. Thanks for this!

Just wondering if it is also possible to remove the menubar (edit/chart/analysis/tool)?

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275


Big Mike View Post
@ktrader, it works. Thanks for this!

Just wondering if it is also possible to remove the menubar (edit/chart/analysis/tool)?

Mike

It is possible

I updated the code to remove the menu when focus is lost.

--ktrader

Attached Files
Elite Membership required to download: ktwindowstyle.cpp
Elite Membership required to download: ktsierra.dll
Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665


ktrader View Post
It is possible

I updated the code to remove the menu when focus is lost.

--ktrader

Awesome!

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665

Uh oh, several of my windows are not showing the menu bar when I come back into focus. I get the title bar, but not the menu bar.

Oddly, some work and some don't. The one's that don't are the same ones over and over.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275


Big Mike View Post
Uh oh, several of my windows are not showing the menu bar when I come back into focus. I get the title bar, but not the menu bar.

Oddly, some work and some don't. The one's that don't are the same ones over and over.

Mike

It was a bit on the hacky side to remove the menu. If any changes is made to the menu while it is removed, it might not work - ( i save a copy of the pointer to the menu when it is removed). I did not experience the problem though. Any pattern to which windows it works for and which it doesnt ?

-ktrader

Started this thread Reply With Quote
  #8 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,465 since Jun 2009
Thanks Given: 33,243
Thanks Received: 101,665


ktrader View Post
It was a bit on the hacky side to remove the menu. If any changes is made to the menu while it is removed, it might not work - ( i save a copy of the pointer to the menu when it is removed). I did not experience the problem though. Any pattern to which windows it works for and which it doesnt ?

-ktrader

I will try to notice. The only thing I've done is add/remove the ETH indicator, so it may have something to do with that.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275


Big Mike View Post
I will try to notice. The only thing I've done is add/remove the ETH indicator, so it may have something to do with that.

Mike

Thats exactly it . if it doesnt have focus when you change any study , i mistakingly saves the menu (which is NULL as it is removed when not having focus). And then there are no menu to bring back later

For now you can make sure the menu is shown before changing studies on the chart. I will see how i can work around it..

Started this thread Reply With Quote
  #10 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275



ktrader View Post
Thats exactly it . if it doesnt have focus when you change any study , i mistakingly saves the menu (which is NULL as it is removed when not having focus). And then there are no menu to bring back later

For now you can make sure the menu is shown before changing studies on the chart. I will see how i can work around it..

Even if it has focus, focus disappear when the study dialog comes up... forget everything i said after "goodmorning"

I will look into how to fix it

Started this thread Reply With Quote




Last Updated on October 31, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts