Profile Picture

DeviceGraphics is null for SeriesType.Stock

Posted By Muhammad Hammad 11 Years Ago
Author
Message
Muhammad Hammad
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 1, Visits: 1
For custom painting, I need to use Graphics object.
I am using custom implementation of the INPaintCallback:

stockChart.PaintCallback = new CustomPaintCallback();

public class CustomPaintCallback : INPaintCallback
{
public void OnAfterPaint(NPanel panel, NPanelPaintEventArgs eventArgs)
{
Graphics graphics = eventArgs.Graphics.DeviceGraphics;
/// graphics is null ?????
}
}


With some research, I found that Graphics object is null when NTooltipTool is used together with any chart.
Is there anyway to get this Graphics object together with NTooltipTool?


Regards,



Similar Topics


Reading This Topic