Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Drawing Icon Images
Collapse
X
-
Drawing Icon Images
Does anyone know where the drawing icon images are stored for Ninja? For example the icon image for the fibonacci retracement or horizontal line etc? I am wanting to use them for a toolbar I am creating.Tags: None
-
Thank you and I have looked at this indicator as an example but I am stuck on getting the image. Here is an example code snippet where the ????? is what I am trying to figure out so that the fib extension icon appears.
btnFibext = new System.Windows.Forms.ToolStripButton("btnFibext");
btnFibext.Font = boldFont ;
btnFibext.ForeColor = Color.Green;
btnFibext.BackColor= Color.Gainsboro;
btnFibext.Alignment = ToolStripItemAlignment.Right;
btnFibext.Text = "FibExt";
btnFibext.DisplayStyle = ToolStripItemDisplayStyle.Image;
btnFibext.Image = ???????.Image;
btnFibext.ToolTipText = "Fibonacci Extension";
Thank you for your help.
Comment
-
Okay. Thanks for your help but I will have to stick with text for the buttons because I can't figure it out.
Comment
-
Okay....I got it to work with some major "work arounds". The only thing I need now is the click event for "remove all draw objects". Can you provide that please? Everything is functional except the remove draw objects. I got the others to work by saving the images for the icons and using the SendKeys.Send for the keyboard shortcuts of the drawings . Thanks
Comment
-
I figured it out....I just assigned a hot key sequence to it and used the SendKeys.Send to get it done. For anyone who is interested here is the code with Ctrl+J being the assigned hot key to delete all manual drawings:
private void btnDelete_Click(object sender, EventArgs e)
{
SendKeys.Send("^{j}");
Comment
-
Originally posted by jhowinvest View PostI figured it out....I just assigned a hot key sequence to it and used the SendKeys.Send to get it done. For anyone who is interested here is the code with Ctrl+J being the assigned hot key to delete all manual drawings:
private void btnDelete_Click(object sender, EventArgs e)
{
SendKeys.Send("^{j}");
Comment
-
Yes I did but I may have made a mistake when I put the code in. I thought that RemoveDrawObjects() would not work to delete manually drawn objects. If so then this would have made it easier. I am a novice and tend to make things more difficult than they should be.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Max Baxter, 03-07-2019, 09:20 PM
|
8 responses
265 views
0 likes
|
Last Post
by Ymcapital
Today, 04:17 PM
|
||
Started by Felix Reichert, 04-26-2024, 02:12 PM
|
9 responses
51 views
0 likes
|
Last Post Today, 03:56 PM | ||
Started by AaronKoRn, 04-27-2024, 09:49 PM
|
3 responses
31 views
0 likes
|
Last Post
by AaronKoRn
Today, 03:47 PM
|
||
Started by f.saeidi, Today, 07:07 AM
|
6 responses
19 views
0 likes
|
Last Post
by f.saeidi
Today, 03:31 PM
|
||
Started by cmtjoancolmenero, Today, 02:31 PM
|
6 responses
17 views
0 likes
|
Last Post Today, 03:29 PM |
Comment