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 Javierw.ok, Today, 04:12 PM
|
0 responses
2 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
40 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
15 views
0 likes
|
Last Post Today, 02:56 PM |
Comment