graphics.DrawImage(...,...);
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
Add mouse-over and click functionality? Handling windows events in indicator?
Collapse
X
-
Originally posted by adamus View PostI hadn't coded the image yet. I assume something like
Code:graphics.DrawImage(...,...);
Comment
-
Originally posted by koganam View PostTreat those drawings like any other object. Declare and initialize them, then assign them. That way you know what the object is, and you can handle it as you please. Take a look at the CustomPlotSample.cs file to see how it is done.
AFAIK now I need a control or a sub-class of a control, because that is the only thing I can use to attach events to, but I dont have anything except the ChartControl.
(The same theory applies to creating tooltips which you suggested earlier, it seems)
Correct me if I'm wrong, please, but I'm sitting on lame duck here.
In case there is an obvious solution that I am missing, could you state it in terms of
Code:graphics.FillEllipse(brush, rectangle);
[EDIT] Now that I'm thinking a bit more clearly thanks to some well-timed caffeine, I figured it would be simple to place a control on the chart instead of drawing an image or a circle, and then I won't have any problem attaching the tooltip / label pop-up.
The question is, would a tiny button be OK in case I have to show 100 of these things on the chart in one plot?
(Is this still sane? It comes from about 4 hours of googling)Last edited by adamus; 07-24-2013, 07:57 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by JonesJoker, 04-22-2024, 12:23 PM
|
8 responses
41 views
0 likes
|
Last Post
by JonesJoker
Today, 06:47 AM
|
||
Started by timko, Today, 06:45 AM
|
0 responses
3 views
0 likes
|
Last Post
by timko
Today, 06:45 AM
|
||
Started by Waxavi, 04-19-2024, 02:10 AM
|
2 responses
39 views
0 likes
|
Last Post
by poeds
Today, 06:37 AM
|
||
Started by chbruno, Yesterday, 04:10 PM
|
1 response
44 views
0 likes
|
Last Post Today, 06:36 AM | ||
Started by Max238, Today, 01:28 AM
|
1 response
25 views
0 likes
|
Last Post
by CactusMan
Today, 06:18 AM
|
Comment