We have fixed and verified the fix for this bug. We modified the drawIcon method inside CloudHeader.cs. We modified the IF statement in the TRY block in that method. That IF statement now contains the CalculateIconPoint(); method call before the DrawImage method is invoked. We have inserted a comment where to add the calculation call. Here is the modified code for the drawIcon method:
private void drawIcon(Graphics graphics)
{
try
{
if (icon != null && iconPoint != null)
{
CalculateIconPoint(); //--Add calculation call here
graphics.DrawImage(icon, iconPoint.X, iconPoint.Y, icon.Width, icon.Height);
}
}
catch
{
// If icon is null an error occurs
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have fixed and verified the fix for this bug. We modified the drawIcon method inside CloudHeader.cs. We modified the IF statement in the TRY block in that method. That IF statement now contains the CalculateIconPoint(); method call before the DrawImage method is invoked. We have inserted a comment where to add the calculation call. Here is the modified code for the drawIcon method:
private void drawIcon(Graphics graphics)
{
try
{
if (icon != null && iconPoint != null)
{
CalculateIconPoint(); //--Add calculation call here
graphics.DrawImage(icon, iconPoint.X, iconPoint.Y, icon.Width, icon.Height);
}
}
catch
{
// If icon is null an error occurs
}
}
Thanks guys, the fix works properly and will be added to the next version of Cloud Toolkit.Net
Best regards,
Timo Salomäki