Announcement
Collapse
No announcement yet.
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
-
Did you try simply calling the NT method to remove all draw objects, RemoveDrawObjects(), as the action for your click event?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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment