User (Legacy) Posted September 26, 2002 Report Share Posted September 26, 2002 In our application the chart control is not always displayed for all operations. Such as when Undo/Redo is done, the chart control is not needed to be displayed. I have found one situation when the chart control is hidden and i set all the properties up i cannot get the SerLegBox to display on the bitmap. It only works if the chart control is visible. Is there a way around this? Bill Large Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 2, 2002 Author Report Share Posted October 2, 2002 If you would like to see a sample app with this let me know. "Bill Large" <largewi@wi.rr.com> wrote in message news:UXyEr5ZZCHA.3136@webserver1.softwarefx.com... > In our application the chart control is not always displayed for all > operations. Such as when Undo/Redo is done, the chart control is not needed > to be displayed. I have found one situation when the chart control is > hidden and i set all the properties up i cannot get the SerLegBox to display > on the bitmap. It only works if the chart control is visible. Is there a > way around this? > > Bill Large > > > Link to comment Share on other sites More sharing options...
Software FX Posted October 3, 2002 Report Share Posted October 3, 2002 I tested this and the series legend box appears (even though the size is incorrectly calculated so we are working on a fix for that). This code was placed on a button in a default Windows Form app. Chart chart2 = new Chart(); chart2.Width = 200; chart2.Height = 200; chart2.Gallery = Gallery.Lines; chart2.OpenData(COD.Values,2,3); chart2.Value[0,0] = 10; chart2.Value[0,1] = 12; chart2.Value[0,2] = 6; chart2.Value[1,0] = 2; chart2.Value[1,1] = 3; chart2.Value[1,2] = 8; chart2.CloseData(COD.Values); chart2.SerLeg[0] = "A"; chart2.SerLeg[1] = "B"; chart2.SerLegBox = true; chart2.Export(FileFormat.Bitmap,"D:\\Temp\\Chart.bmp"); Are you doing something different ? Can you post a small sample that duplicates your issue ? -- Regards, JC Software FX Support "Bill Large" <largewi@wi.rr.com> wrote in message news:$6L8EciaCHA.1228@webserver1.softwarefx.com... > If you would like to see a sample app with this let me know. > > > > "Bill Large" <largewi@wi.rr.com> wrote in message > news:UXyEr5ZZCHA.3136@webserver1.softwarefx.com... > > In our application the chart control is not always displayed for all > > operations. Such as when Undo/Redo is done, the chart control is not > needed > > to be displayed. I have found one situation when the chart control is > > hidden and i set all the properties up i cannot get the SerLegBox to > display > > on the bitmap. It only works if the chart control is visible. Is there a > > way around this? > > > > Bill Large > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 3, 2002 Author Report Share Posted October 3, 2002 Ok here is the sample app that demostrates this. 1) Start the app 2) Hide the Chart using the Hide Button 3) Try to turn on the Legend while the chart is hidden (it wont turn on for me) 4) Then create the bitmap (bitmap is created without the legend) (this is a problem for opererations such as Undo/Redo where we use the control in a hidden state to recreate the bitmap) Also i have noticed that when the legend is displayed we do not get the DoubleClick event when double clicking on the legend area of the chart. Bill Large Metavante "Software FX Support" <support@softwarefx.com> wrote in message news:Ai$Ia0vaCHA.1316@webserver1.softwarefx.com... > I tested this and the series legend box appears (even though the size is > incorrectly calculated so we are working on a fix for that). This code was > placed on a button in a default Windows Form app. > > Chart chart2 = new Chart(); > chart2.Width = 200; > chart2.Height = 200; > chart2.Gallery = Gallery.Lines; > chart2.OpenData(COD.Values,2,3); > chart2.Value[0,0] = 10; > chart2.Value[0,1] = 12; > chart2.Value[0,2] = 6; > chart2.Value[1,0] = 2; > chart2.Value[1,1] = 3; > chart2.Value[1,2] = 8; > chart2.CloseData(COD.Values); > chart2.SerLeg[0] = "A"; > chart2.SerLeg[1] = "B"; > chart2.SerLegBox = true; > chart2.Export(FileFormat.Bitmap,"D:\\Temp\\Chart.bmp"); > > Are you doing something different ? > Can you post a small sample that duplicates your issue ? > > -- > Regards, > > JC > Software FX Support > "Bill Large" <largewi@wi.rr.com> wrote in message > news:$6L8EciaCHA.1228@webserver1.softwarefx.com... > > If you would like to see a sample app with this let me know. > > > > > > > > "Bill Large" <largewi@wi.rr.com> wrote in message > > news:UXyEr5ZZCHA.3136@webserver1.softwarefx.com... > > > In our application the chart control is not always displayed for all > > > operations. Such as when Undo/Redo is done, the chart control is not > > needed > > > to be displayed. I have found one situation when the chart control is > > > hidden and i set all the properties up i cannot get the SerLegBox to > > display > > > on the bitmap. It only works if the chart control is visible. Is there > a > > > way around this? > > > > > > Bill Large > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted October 3, 2002 Report Share Posted October 3, 2002 We have fixed this bug and the fix will be included in our next service pack. > Also i have noticed that when the legend is displayed we do not get the > DoubleClick event when double clicking on the legend area of the chart. In our current service pack we are generating MouseDown events for the dataeditor and legend box, our next service pack will also generate MouseUp and DoubleClick events for these objects. -- Regards, JC Software FX Support "Bill Large" <largewi@wi.rr.com> wrote in message news:Bt3kKZwaCHA.1228@webserver1.softwarefx.com... > Ok here is the sample app that demostrates this. > > 1) Start the app > 2) Hide the Chart using the Hide Button > 3) Try to turn on the Legend while the chart is hidden (it wont turn on > for me) > 4) Then create the bitmap (bitmap is created without the legend) (this is > a problem for opererations such as Undo/Redo where we use the control in a > hidden state to recreate the bitmap) > > > Also i have noticed that when the legend is displayed we do not get the > DoubleClick event when double clicking on the legend area of the chart. > > > Bill Large > Metavante > > > > "Software FX Support" <support@softwarefx.com> wrote in message > news:Ai$Ia0vaCHA.1316@webserver1.softwarefx.com... > > I tested this and the series legend box appears (even though the size is > > incorrectly calculated so we are working on a fix for that). This code was > > placed on a button in a default Windows Form app. > > > > Chart chart2 = new Chart(); > > chart2.Width = 200; > > chart2.Height = 200; > > chart2.Gallery = Gallery.Lines; > > chart2.OpenData(COD.Values,2,3); > > chart2.Value[0,0] = 10; > > chart2.Value[0,1] = 12; > > chart2.Value[0,2] = 6; > > chart2.Value[1,0] = 2; > > chart2.Value[1,1] = 3; > > chart2.Value[1,2] = 8; > > chart2.CloseData(COD.Values); > > chart2.SerLeg[0] = "A"; > > chart2.SerLeg[1] = "B"; > > chart2.SerLegBox = true; > > chart2.Export(FileFormat.Bitmap,"D:\\Temp\\Chart.bmp"); > > > > Are you doing something different ? > > Can you post a small sample that duplicates your issue ? > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Bill Large" <largewi@wi.rr.com> wrote in message > > news:$6L8EciaCHA.1228@webserver1.softwarefx.com... > > > If you would like to see a sample app with this let me know. > > > > > > > > > > > > "Bill Large" <largewi@wi.rr.com> wrote in message > > > news:UXyEr5ZZCHA.3136@webserver1.softwarefx.com... > > > > In our application the chart control is not always displayed for all > > > > operations. Such as when Undo/Redo is done, the chart control is not > > > needed > > > > to be displayed. I have found one situation when the chart control is > > > > hidden and i set all the properties up i cannot get the SerLegBox to > > > display > > > > on the bitmap. It only works if the chart control is visible. Is > there > > a > > > > way around this? > > > > > > > > Bill Large > > > > > > > > > > > > > > > > > > > > > > > > > Charts.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.