User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 Greetings, I see a couple of references to the ChartFX Lite Toolbar functionality in this newsgroup, and I am having the same problem. The toolbar buttons work fine when my program starts, but once I put new data into the chart, then the buttons stop working. They indicate a pressed state (slight highlighting), and will toggle on/off just fine, but there isn't any functionality. The state of things is as follows: Windows XP Professional laptop, SP1a Visual Studio .NET 2003 ChartFX Lite, assembly version 6.0.839. I have tried to download and install the service pack for this product, but in the absence of any documentation, I'm not sure I've done this properly. The dll file version in my project bin folder is 6.0.1353.24745, which does seem to be the most recent. The chart is first populated when the user selects the Chart tab on a Windows form. I get some data into Category and Value arrays, and then use OpenData and CloseData to get the data associated with the chart. Inasmuch as this is working, as is the presentation of new data, I imagine I have got this right. The only problem is that the toolbar buttons don't work after using ClearData and then fresh input of data. I have tried reinitialising all aspects of the chart as follows: With Me.Chart1 .CloseData(COD.Values) .RecalcScale() .ToolBar = True .Enabled = True . Visible = True End With Most grateful for any pointers, or confirmation that this is a bug. One thought I had was to delete the control from the form and reconstruct it each time new data is presented. But that seems a lot of overhead if it can be avoided. Many thanks and regards Sebastian Crewe Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Report Share Posted January 6, 2004 Greetings, I see a couple of references to the ChartFX Lite Toolbar functionality in this newsgroup, and I am having the same problem. The toolbar buttons work fine when my program starts, but once I put new data into the chart, then the buttons stop working. They indicate a pressed state (slight highlighting), and will toggle on/off just fine, but there isn't any functionality. The state of things is as follows: Windows XP Professional laptop, SP1a Visual Studio .NET 2003 ChartFX Lite, assembly version 6.0.839. I have tried to download and install the service pack for this product, but in the absence of any documentation, I'm not sure I've done this properly. The dll file version in my project bin folder is 6.0.1353.24745, which does seem to be the most recent. The chart is first populated when the user selects the Chart tab on a Windows form. I get some data into Category and Value arrays, and then use OpenData and CloseData to get the data associated with the chart. Inasmuch as this is working, as is the presentation of new data, I imagine I have got this right. The only problem is that the toolbar buttons don't work after using ClearData and then fresh input of data. I have tried reinitialising all aspects of the chart as follows: With Me.Chart1 .CloseData(COD.Values) .RecalcScale() .ToolBar = True .Enabled = True . Visible = True End With Most grateful for any pointers, or confirmation that this is a bug. One thought I had was to delete the control from the form and reconstruct it each time new data is presented. But that seems a lot of overhead if it can be avoided. Many thanks and regards Sebastian Crewe Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 I had the same issues. Seem to work fine then just stop. The data loads fine and the buttons/menus appear to work but the click events don't seem to fire. "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:CK7tCdG1DHA.3512@WEBSERVER1... > Greetings, > > I see a couple of references to the ChartFX Lite Toolbar functionality in > this newsgroup, and I am having the same problem. The toolbar buttons work > fine when my program starts, but once I put new data into the chart, then > the buttons stop working. They indicate a pressed state (slight > highlighting), and will toggle on/off just fine, but there isn't any > functionality. > > The state of things is as follows: > > Windows XP Professional laptop, SP1a > Visual Studio .NET 2003 > ChartFX Lite, assembly version 6.0.839. I have tried to download and > install the service pack for this product, but in the absence of any > documentation, I'm not sure I've done this properly. The dll file version > in my project bin folder is 6.0.1353.24745, which does seem to be the most > recent. > > The chart is first populated when the user selects the Chart tab on a > Windows form. I get some data into Category and Value arrays, and then use > OpenData and CloseData to get the data associated with the chart. Inasmuch > as this is working, as is the presentation of new data, I imagine I have got > this right. The only problem is that the toolbar buttons don't work after > using ClearData and then fresh input of data. I have tried reinitialising > all aspects of the chart as follows: > > With Me.Chart1 > > .CloseData(COD.Values) > .RecalcScale() > .ToolBar = True > .Enabled = True > . Visible = True > > End With > > Most grateful for any pointers, or confirmation that this is a bug. One > thought I had was to delete the control from the form and reconstruct it > each time new data is presented. But that seems a lot of overhead if it can > be avoided. > > Many thanks and regards > > Sebastian Crewe > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 I had the same issues. Seem to work fine then just stop. The data loads fine and the buttons/menus appear to work but the click events don't seem to fire. "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:CK7tCdG1DHA.3512@WEBSERVER1... > Greetings, > > I see a couple of references to the ChartFX Lite Toolbar functionality in > this newsgroup, and I am having the same problem. The toolbar buttons work > fine when my program starts, but once I put new data into the chart, then > the buttons stop working. They indicate a pressed state (slight > highlighting), and will toggle on/off just fine, but there isn't any > functionality. > > The state of things is as follows: > > Windows XP Professional laptop, SP1a > Visual Studio .NET 2003 > ChartFX Lite, assembly version 6.0.839. I have tried to download and > install the service pack for this product, but in the absence of any > documentation, I'm not sure I've done this properly. The dll file version > in my project bin folder is 6.0.1353.24745, which does seem to be the most > recent. > > The chart is first populated when the user selects the Chart tab on a > Windows form. I get some data into Category and Value arrays, and then use > OpenData and CloseData to get the data associated with the chart. Inasmuch > as this is working, as is the presentation of new data, I imagine I have got > this right. The only problem is that the toolbar buttons don't work after > using ClearData and then fresh input of data. I have tried reinitialising > all aspects of the chart as follows: > > With Me.Chart1 > > .CloseData(COD.Values) > .RecalcScale() > .ToolBar = True > .Enabled = True > . Visible = True > > End With > > Most grateful for any pointers, or confirmation that this is a bug. One > thought I had was to delete the control from the form and reconstruct it > each time new data is presented. But that seems a lot of overhead if it can > be avoided. > > Many thanks and regards > > Sebastian Crewe > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 6, 2004 Report Share Posted January 6, 2004 The problem has been fixed and we are uploading a new service pack (build 1466). -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:CK7tCdG1DHA.3512@WEBSERVER1... > Greetings, > > I see a couple of references to the ChartFX Lite Toolbar functionality in > this newsgroup, and I am having the same problem. The toolbar buttons work > fine when my program starts, but once I put new data into the chart, then > the buttons stop working. They indicate a pressed state (slight > highlighting), and will toggle on/off just fine, but there isn't any > functionality. > > The state of things is as follows: > > Windows XP Professional laptop, SP1a > Visual Studio .NET 2003 > ChartFX Lite, assembly version 6.0.839. I have tried to download and > install the service pack for this product, but in the absence of any > documentation, I'm not sure I've done this properly. The dll file version > in my project bin folder is 6.0.1353.24745, which does seem to be the most > recent. > > The chart is first populated when the user selects the Chart tab on a > Windows form. I get some data into Category and Value arrays, and then use > OpenData and CloseData to get the data associated with the chart. Inasmuch > as this is working, as is the presentation of new data, I imagine I have got > this right. The only problem is that the toolbar buttons don't work after > using ClearData and then fresh input of data. I have tried reinitialising > all aspects of the chart as follows: > > With Me.Chart1 > > .CloseData(COD.Values) > .RecalcScale() > .ToolBar = True > .Enabled = True > . Visible = True > > End With > > Most grateful for any pointers, or confirmation that this is a bug. One > thought I had was to delete the control from the form and reconstruct it > each time new data is presented. But that seems a lot of overhead if it can > be avoided. > > Many thanks and regards > > Sebastian Crewe > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 6, 2004 Report Share Posted January 6, 2004 The problem has been fixed and we are uploading a new service pack (build 1466). -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:CK7tCdG1DHA.3512@WEBSERVER1... > Greetings, > > I see a couple of references to the ChartFX Lite Toolbar functionality in > this newsgroup, and I am having the same problem. The toolbar buttons work > fine when my program starts, but once I put new data into the chart, then > the buttons stop working. They indicate a pressed state (slight > highlighting), and will toggle on/off just fine, but there isn't any > functionality. > > The state of things is as follows: > > Windows XP Professional laptop, SP1a > Visual Studio .NET 2003 > ChartFX Lite, assembly version 6.0.839. I have tried to download and > install the service pack for this product, but in the absence of any > documentation, I'm not sure I've done this properly. The dll file version > in my project bin folder is 6.0.1353.24745, which does seem to be the most > recent. > > The chart is first populated when the user selects the Chart tab on a > Windows form. I get some data into Category and Value arrays, and then use > OpenData and CloseData to get the data associated with the chart. Inasmuch > as this is working, as is the presentation of new data, I imagine I have got > this right. The only problem is that the toolbar buttons don't work after > using ClearData and then fresh input of data. I have tried reinitialising > all aspects of the chart as follows: > > With Me.Chart1 > > .CloseData(COD.Values) > .RecalcScale() > .ToolBar = True > .Enabled = True > . Visible = True > > End With > > Most grateful for any pointers, or confirmation that this is a bug. One > thought I had was to delete the control from the form and reconstruct it > each time new data is presented. But that seems a lot of overhead if it can > be avoided. > > Many thanks and regards > > Sebastian Crewe > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 What exactly was the issue? I reported this just recently and a few months ago and all indications were that there was no problem. Just curious what the issue was. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:EDeutoH1DHA.3808@WEBSERVER1... > The problem has been fixed and we are uploading a new service pack (build > 1466). > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:CK7tCdG1DHA.3512@WEBSERVER1... > > Greetings, > > > > I see a couple of references to the ChartFX Lite Toolbar functionality in > > this newsgroup, and I am having the same problem. The toolbar buttons > work > > fine when my program starts, but once I put new data into the chart, then > > the buttons stop working. They indicate a pressed state (slight > > highlighting), and will toggle on/off just fine, but there isn't any > > functionality. > > > > The state of things is as follows: > > > > Windows XP Professional laptop, SP1a > > Visual Studio .NET 2003 > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > install the service pack for this product, but in the absence of any > > documentation, I'm not sure I've done this properly. The dll file version > > in my project bin folder is 6.0.1353.24745, which does seem to be the most > > recent. > > > > The chart is first populated when the user selects the Chart tab on a > > Windows form. I get some data into Category and Value arrays, and then > use > > OpenData and CloseData to get the data associated with the chart. > Inasmuch > > as this is working, as is the presentation of new data, I imagine I have > got > > this right. The only problem is that the toolbar buttons don't work after > > using ClearData and then fresh input of data. I have tried reinitialising > > all aspects of the chart as follows: > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > .RecalcScale() > > .ToolBar = True > > .Enabled = True > > . Visible = True > > > > End With > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > thought I had was to delete the control from the form and reconstruct it > > each time new data is presented. But that seems a lot of overhead if it > can > > be avoided. > > > > Many thanks and regards > > > > Sebastian Crewe > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 What exactly was the issue? I reported this just recently and a few months ago and all indications were that there was no problem. Just curious what the issue was. "SoftwareFX Support" <support@softwarefx.com> wrote in message news:EDeutoH1DHA.3808@WEBSERVER1... > The problem has been fixed and we are uploading a new service pack (build > 1466). > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:CK7tCdG1DHA.3512@WEBSERVER1... > > Greetings, > > > > I see a couple of references to the ChartFX Lite Toolbar functionality in > > this newsgroup, and I am having the same problem. The toolbar buttons > work > > fine when my program starts, but once I put new data into the chart, then > > the buttons stop working. They indicate a pressed state (slight > > highlighting), and will toggle on/off just fine, but there isn't any > > functionality. > > > > The state of things is as follows: > > > > Windows XP Professional laptop, SP1a > > Visual Studio .NET 2003 > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > install the service pack for this product, but in the absence of any > > documentation, I'm not sure I've done this properly. The dll file version > > in my project bin folder is 6.0.1353.24745, which does seem to be the most > > recent. > > > > The chart is first populated when the user selects the Chart tab on a > > Windows form. I get some data into Category and Value arrays, and then > use > > OpenData and CloseData to get the data associated with the chart. > Inasmuch > > as this is working, as is the presentation of new data, I imagine I have > got > > this right. The only problem is that the toolbar buttons don't work after > > using ClearData and then fresh input of data. I have tried reinitialising > > all aspects of the chart as follows: > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > .RecalcScale() > > .ToolBar = True > > .Enabled = True > > . Visible = True > > > > End With > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > thought I had was to delete the control from the form and reconstruct it > > each time new data is presented. But that seems a lot of overhead if it > can > > be avoided. > > > > Many thanks and regards > > > > Sebastian Crewe > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 Many thanks. I'll check for the new build in a couple of days. Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:EDeutoH1DHA.3808@WEBSERVER1... > The problem has been fixed and we are uploading a new service pack (build > 1466). > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:CK7tCdG1DHA.3512@WEBSERVER1... > > Greetings, > > > > I see a couple of references to the ChartFX Lite Toolbar functionality in > > this newsgroup, and I am having the same problem. The toolbar buttons > work > > fine when my program starts, but once I put new data into the chart, then > > the buttons stop working. They indicate a pressed state (slight > > highlighting), and will toggle on/off just fine, but there isn't any > > functionality. > > > > The state of things is as follows: > > > > Windows XP Professional laptop, SP1a > > Visual Studio .NET 2003 > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > install the service pack for this product, but in the absence of any > > documentation, I'm not sure I've done this properly. The dll file version > > in my project bin folder is 6.0.1353.24745, which does seem to be the most > > recent. > > > > The chart is first populated when the user selects the Chart tab on a > > Windows form. I get some data into Category and Value arrays, and then > use > > OpenData and CloseData to get the data associated with the chart. > Inasmuch > > as this is working, as is the presentation of new data, I imagine I have > got > > this right. The only problem is that the toolbar buttons don't work after > > using ClearData and then fresh input of data. I have tried reinitialising > > all aspects of the chart as follows: > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > .RecalcScale() > > .ToolBar = True > > .Enabled = True > > . Visible = True > > > > End With > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > thought I had was to delete the control from the form and reconstruct it > > each time new data is presented. But that seems a lot of overhead if it > can > > be avoided. > > > > Many thanks and regards > > > > Sebastian Crewe > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 6, 2004 Author Report Share Posted January 6, 2004 Many thanks. I'll check for the new build in a couple of days. Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:EDeutoH1DHA.3808@WEBSERVER1... > The problem has been fixed and we are uploading a new service pack (build > 1466). > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:CK7tCdG1DHA.3512@WEBSERVER1... > > Greetings, > > > > I see a couple of references to the ChartFX Lite Toolbar functionality in > > this newsgroup, and I am having the same problem. The toolbar buttons > work > > fine when my program starts, but once I put new data into the chart, then > > the buttons stop working. They indicate a pressed state (slight > > highlighting), and will toggle on/off just fine, but there isn't any > > functionality. > > > > The state of things is as follows: > > > > Windows XP Professional laptop, SP1a > > Visual Studio .NET 2003 > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > install the service pack for this product, but in the absence of any > > documentation, I'm not sure I've done this properly. The dll file version > > in my project bin folder is 6.0.1353.24745, which does seem to be the most > > recent. > > > > The chart is first populated when the user selects the Chart tab on a > > Windows form. I get some data into Category and Value arrays, and then > use > > OpenData and CloseData to get the data associated with the chart. > Inasmuch > > as this is working, as is the presentation of new data, I imagine I have > got > > this right. The only problem is that the toolbar buttons don't work after > > using ClearData and then fresh input of data. I have tried reinitialising > > all aspects of the chart as follows: > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > .RecalcScale() > > .ToolBar = True > > .Enabled = True > > . Visible = True > > > > End With > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > thought I had was to delete the control from the form and reconstruct it > > each time new data is presented. But that seems a lot of overhead if it > can > > be avoided. > > > > Many thanks and regards > > > > Sebastian Crewe > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 6, 2004 Report Share Posted January 6, 2004 I probably did not read your postings correctly but until now I did not know that the bug occurred after a ClearData call. It was a simple bug to fix, after the ClearData call we were not re-setting up our event handlers to listen for toolbar events. I apologize for the inconvenience. -- Regards, JC Software FX Support "Schooner" <schooner@accesswave.ca> wrote in message news:FmgfvsH1DHA.3512@WEBSERVER1... > What exactly was the issue? I reported this just recently and a few months > ago and all indications were that there was no problem. Just curious what > the issue was. > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:EDeutoH1DHA.3808@WEBSERVER1... > > The problem has been fixed and we are uploading a new service pack (build > > 1466). > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > Greetings, > > > > > > I see a couple of references to the ChartFX Lite Toolbar functionality > in > > > this newsgroup, and I am having the same problem. The toolbar buttons > > work > > > fine when my program starts, but once I put new data into the chart, > then > > > the buttons stop working. They indicate a pressed state (slight > > > highlighting), and will toggle on/off just fine, but there isn't any > > > functionality. > > > > > > The state of things is as follows: > > > > > > Windows XP Professional laptop, SP1a > > > Visual Studio .NET 2003 > > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > > install the service pack for this product, but in the absence of any > > > documentation, I'm not sure I've done this properly. The dll file > version > > > in my project bin folder is 6.0.1353.24745, which does seem to be the > most > > > recent. > > > > > > The chart is first populated when the user selects the Chart tab on a > > > Windows form. I get some data into Category and Value arrays, and then > > use > > > OpenData and CloseData to get the data associated with the chart. > > Inasmuch > > > as this is working, as is the presentation of new data, I imagine I have > > got > > > this right. The only problem is that the toolbar buttons don't work > after > > > using ClearData and then fresh input of data. I have tried > reinitialising > > > all aspects of the chart as follows: > > > > > > With Me.Chart1 > > > > > > .CloseData(COD.Values) > > > .RecalcScale() > > > .ToolBar = True > > > .Enabled = True > > > . Visible = True > > > > > > End With > > > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > > thought I had was to delete the control from the form and reconstruct it > > > each time new data is presented. But that seems a lot of overhead if it > > can > > > be avoided. > > > > > > Many thanks and regards > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 6, 2004 Report Share Posted January 6, 2004 I probably did not read your postings correctly but until now I did not know that the bug occurred after a ClearData call. It was a simple bug to fix, after the ClearData call we were not re-setting up our event handlers to listen for toolbar events. I apologize for the inconvenience. -- Regards, JC Software FX Support "Schooner" <schooner@accesswave.ca> wrote in message news:FmgfvsH1DHA.3512@WEBSERVER1... > What exactly was the issue? I reported this just recently and a few months > ago and all indications were that there was no problem. Just curious what > the issue was. > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:EDeutoH1DHA.3808@WEBSERVER1... > > The problem has been fixed and we are uploading a new service pack (build > > 1466). > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > Greetings, > > > > > > I see a couple of references to the ChartFX Lite Toolbar functionality > in > > > this newsgroup, and I am having the same problem. The toolbar buttons > > work > > > fine when my program starts, but once I put new data into the chart, > then > > > the buttons stop working. They indicate a pressed state (slight > > > highlighting), and will toggle on/off just fine, but there isn't any > > > functionality. > > > > > > The state of things is as follows: > > > > > > Windows XP Professional laptop, SP1a > > > Visual Studio .NET 2003 > > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > > install the service pack for this product, but in the absence of any > > > documentation, I'm not sure I've done this properly. The dll file > version > > > in my project bin folder is 6.0.1353.24745, which does seem to be the > most > > > recent. > > > > > > The chart is first populated when the user selects the Chart tab on a > > > Windows form. I get some data into Category and Value arrays, and then > > use > > > OpenData and CloseData to get the data associated with the chart. > > Inasmuch > > > as this is working, as is the presentation of new data, I imagine I have > > got > > > this right. The only problem is that the toolbar buttons don't work > after > > > using ClearData and then fresh input of data. I have tried > reinitialising > > > all aspects of the chart as follows: > > > > > > With Me.Chart1 > > > > > > .CloseData(COD.Values) > > > .RecalcScale() > > > .ToolBar = True > > > .Enabled = True > > > . Visible = True > > > > > > End With > > > > > > Most grateful for any pointers, or confirmation that this is a bug. One > > > thought I had was to delete the control from the form and reconstruct it > > > each time new data is presented. But that seems a lot of overhead if it > > can > > > be avoided. > > > > > > Many thanks and regards > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 8, 2004 Author Report Share Posted January 8, 2004 Sorry to say that it seems the latest build doesn't solve the problem - ie the toolbar buttons don't work after the chart has new data squirted in. As mentioned before, I am presenting a chart and allowing a user to apply filters to the data. Once a filter is chosen, I get the subset of data and redo the chart. Here is the code I am using with the latest service pack (file version 6.0.1466.20337): Me.Chart1.ClearData(ClearDataFlag.AllData) ... get the data into a datatable called dtResults, then ... nItemCount = dtResults.Rows.Count nFieldCount = 1 For nField = 1 To nFieldCount ReDim strCats(nItemCount) ReDim strVals(nItemCount) For intCount = 0 To nItemCount - 1 dr = dtResults.Rows(intCount) strCats(intCount) = dr.Item(0) strVals(intCount) = dr.Item(1) If fFilter1 Then Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) End If Next Next With Me.Chart1 .AxisX.ResetScale() End With Chart1.OpenData(COD.Values, nFieldCount, nItemCount) For nField = 0 To nFieldCount - 1 For nItem = 0 To nItemCount - 1 Chart1.Value(nField, nItem) = strVals(nItem) Chart1.Legend(nItem) = strCats(nItem) Next Next With Me.Chart1 .CloseData(COD.Values) .RecalcScale() .LegendBox = True .ToolBar = True .Enabled = True .Visible = True End With Most grateful if you could advise whether the problem lies in my code or yours. Many thanks Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:nc0d9DI1DHA.3808@WEBSERVER1... > I probably did not read your postings correctly but until now I did not know > that the bug occurred after a ClearData call. It was a simple bug to fix, > after the ClearData call we were not re-setting up our event handlers to > listen for toolbar events. > > I apologize for the inconvenience. > > -- > Regards, > > JC > Software FX Support > "Schooner" <schooner@accesswave.ca> wrote in message > news:FmgfvsH1DHA.3512@WEBSERVER1... > > What exactly was the issue? I reported this just recently and a few > months > > ago and all indications were that there was no problem. Just curious what > > the issue was. > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > The problem has been fixed and we are uploading a new service pack > (build > > > 1466). > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > Greetings, > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar functionality > > in > > > > this newsgroup, and I am having the same problem. The toolbar buttons > > > work > > > > fine when my program starts, but once I put new data into the chart, > > then > > > > the buttons stop working. They indicate a pressed state (slight > > > > highlighting), and will toggle on/off just fine, but there isn't any > > > > functionality. > > > > > > > > The state of things is as follows: > > > > > > > > Windows XP Professional laptop, SP1a > > > > Visual Studio .NET 2003 > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > > > install the service pack for this product, but in the absence of any > > > > documentation, I'm not sure I've done this properly. The dll file > > version > > > > in my project bin folder is 6.0.1353.24745, which does seem to be the > > most > > > > recent. > > > > > > > > The chart is first populated when the user selects the Chart tab on a > > > > Windows form. I get some data into Category and Value arrays, and > then > > > use > > > > OpenData and CloseData to get the data associated with the chart. > > > Inasmuch > > > > as this is working, as is the presentation of new data, I imagine I > have > > > got > > > > this right. The only problem is that the toolbar buttons don't work > > after > > > > using ClearData and then fresh input of data. I have tried > > reinitialising > > > > all aspects of the chart as follows: > > > > > > > > With Me.Chart1 > > > > > > > > .CloseData(COD.Values) > > > > .RecalcScale() > > > > .ToolBar = True > > > > .Enabled = True > > > > . Visible = True > > > > > > > > End With > > > > > > > > Most grateful for any pointers, or confirmation that this is a bug. > One > > > > thought I had was to delete the control from the form and reconstruct > it > > > > each time new data is presented. But that seems a lot of overhead if > it > > > can > > > > be avoided. > > > > > > > > Many thanks and regards > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 8, 2004 Author Report Share Posted January 8, 2004 Sorry to say that it seems the latest build doesn't solve the problem - ie the toolbar buttons don't work after the chart has new data squirted in. As mentioned before, I am presenting a chart and allowing a user to apply filters to the data. Once a filter is chosen, I get the subset of data and redo the chart. Here is the code I am using with the latest service pack (file version 6.0.1466.20337): Me.Chart1.ClearData(ClearDataFlag.AllData) ... get the data into a datatable called dtResults, then ... nItemCount = dtResults.Rows.Count nFieldCount = 1 For nField = 1 To nFieldCount ReDim strCats(nItemCount) ReDim strVals(nItemCount) For intCount = 0 To nItemCount - 1 dr = dtResults.Rows(intCount) strCats(intCount) = dr.Item(0) strVals(intCount) = dr.Item(1) If fFilter1 Then Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) End If Next Next With Me.Chart1 .AxisX.ResetScale() End With Chart1.OpenData(COD.Values, nFieldCount, nItemCount) For nField = 0 To nFieldCount - 1 For nItem = 0 To nItemCount - 1 Chart1.Value(nField, nItem) = strVals(nItem) Chart1.Legend(nItem) = strCats(nItem) Next Next With Me.Chart1 .CloseData(COD.Values) .RecalcScale() .LegendBox = True .ToolBar = True .Enabled = True .Visible = True End With Most grateful if you could advise whether the problem lies in my code or yours. Many thanks Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:nc0d9DI1DHA.3808@WEBSERVER1... > I probably did not read your postings correctly but until now I did not know > that the bug occurred after a ClearData call. It was a simple bug to fix, > after the ClearData call we were not re-setting up our event handlers to > listen for toolbar events. > > I apologize for the inconvenience. > > -- > Regards, > > JC > Software FX Support > "Schooner" <schooner@accesswave.ca> wrote in message > news:FmgfvsH1DHA.3512@WEBSERVER1... > > What exactly was the issue? I reported this just recently and a few > months > > ago and all indications were that there was no problem. Just curious what > > the issue was. > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > The problem has been fixed and we are uploading a new service pack > (build > > > 1466). > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > Greetings, > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar functionality > > in > > > > this newsgroup, and I am having the same problem. The toolbar buttons > > > work > > > > fine when my program starts, but once I put new data into the chart, > > then > > > > the buttons stop working. They indicate a pressed state (slight > > > > highlighting), and will toggle on/off just fine, but there isn't any > > > > functionality. > > > > > > > > The state of things is as follows: > > > > > > > > Windows XP Professional laptop, SP1a > > > > Visual Studio .NET 2003 > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download and > > > > install the service pack for this product, but in the absence of any > > > > documentation, I'm not sure I've done this properly. The dll file > > version > > > > in my project bin folder is 6.0.1353.24745, which does seem to be the > > most > > > > recent. > > > > > > > > The chart is first populated when the user selects the Chart tab on a > > > > Windows form. I get some data into Category and Value arrays, and > then > > > use > > > > OpenData and CloseData to get the data associated with the chart. > > > Inasmuch > > > > as this is working, as is the presentation of new data, I imagine I > have > > > got > > > > this right. The only problem is that the toolbar buttons don't work > > after > > > > using ClearData and then fresh input of data. I have tried > > reinitialising > > > > all aspects of the chart as follows: > > > > > > > > With Me.Chart1 > > > > > > > > .CloseData(COD.Values) > > > > .RecalcScale() > > > > .ToolBar = True > > > > .Enabled = True > > > > . Visible = True > > > > > > > > End With > > > > > > > > Most grateful for any pointers, or confirmation that this is a bug. > One > > > > thought I had was to delete the control from the form and reconstruct > it > > > > each time new data is presented. But that seems a lot of overhead if > it > > > can > > > > be avoided. > > > > > > > > Many thanks and regards > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 8, 2004 Report Share Posted January 8, 2004 Did you check if VS is copying the new DLL to your Bin\Debug folder ? Can you try the following: - Drop a chart in a brand new Windows Form project. - Create two buttons and add the following code to each button private void button1_Click(object sender, System.EventArgs e) { chart1.ToolBar = true; chart1.OpenData(COD.Values,1,3); chart1.Value[0,0] = 10; chart1.Value[0,1] = 12; chart1.Value[0,2] = 8; chart1.CloseData(COD.Values); } private void button2_Click(object sender, System.EventArgs e) { chart1.ClearData(ClearDataFlag.AllData); chart1.OpenData(COD.Values,1,3); chart1.Value[0,0] = 4; chart1.Value[0,1] = 2; chart1.Value[0,2] = 6; chart1.CloseData(COD.Values); chart1.ToolBar = true; } Press button1, then button2 and check if the toolbar still works for you. -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:ayj1hxf1DHA.3512@WEBSERVER1... > Sorry to say that it seems the latest build doesn't solve the problem - ie > the toolbar buttons don't work after the chart has new data squirted in. As > mentioned before, I am presenting a chart and allowing a user to apply > filters to the data. Once a filter is chosen, I get the subset of data and > redo the chart. Here is the code I am using with the latest service pack > (file version 6.0.1466.20337): > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > ... get the data into a datatable called dtResults, then ... > > nItemCount = dtResults.Rows.Count > nFieldCount = 1 > > For nField = 1 To nFieldCount > ReDim strCats(nItemCount) > ReDim strVals(nItemCount) > > For intCount = 0 To nItemCount - 1 > dr = dtResults.Rows(intCount) > strCats(intCount) = dr.Item(0) > strVals(intCount) = dr.Item(1) > > If fFilter1 Then > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > End If > Next > Next > > With Me.Chart1 > .AxisX.ResetScale() > End With > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > For nField = 0 To nFieldCount - 1 > For nItem = 0 To nItemCount - 1 > Chart1.Value(nField, nItem) = strVals(nItem) > Chart1.Legend(nItem) = strCats(nItem) > Next > Next > > With Me.Chart1 > .CloseData(COD.Values) > .RecalcScale() > .LegendBox = True > .ToolBar = True > .Enabled = True > .Visible = True > End With > > Most grateful if you could advise whether the problem lies in my code or > yours. > > Many thanks > > Sebastian > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:nc0d9DI1DHA.3808@WEBSERVER1... > > I probably did not read your postings correctly but until now I did not > know > > that the bug occurred after a ClearData call. It was a simple bug to fix, > > after the ClearData call we were not re-setting up our event handlers to > > listen for toolbar events. > > > > I apologize for the inconvenience. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Schooner" <schooner@accesswave.ca> wrote in message > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > What exactly was the issue? I reported this just recently and a few > > months > > > ago and all indications were that there was no problem. Just curious > what > > > the issue was. > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > The problem has been fixed and we are uploading a new service pack > > (build > > > > 1466). > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > Greetings, > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > functionality > > > in > > > > > this newsgroup, and I am having the same problem. The toolbar > buttons > > > > work > > > > > fine when my program starts, but once I put new data into the chart, > > > then > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > highlighting), and will toggle on/off just fine, but there isn't any > > > > > functionality. > > > > > > > > > > The state of things is as follows: > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > Visual Studio .NET 2003 > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download > and > > > > > install the service pack for this product, but in the absence of any > > > > > documentation, I'm not sure I've done this properly. The dll file > > > version > > > > > in my project bin folder is 6.0.1353.24745, which does seem to be > the > > > most > > > > > recent. > > > > > > > > > > The chart is first populated when the user selects the Chart tab on > a > > > > > Windows form. I get some data into Category and Value arrays, and > > then > > > > use > > > > > OpenData and CloseData to get the data associated with the chart. > > > > Inasmuch > > > > > as this is working, as is the presentation of new data, I imagine I > > have > > > > got > > > > > this right. The only problem is that the toolbar buttons don't work > > > after > > > > > using ClearData and then fresh input of data. I have tried > > > reinitialising > > > > > all aspects of the chart as follows: > > > > > > > > > > With Me.Chart1 > > > > > > > > > > .CloseData(COD.Values) > > > > > .RecalcScale() > > > > > .ToolBar = True > > > > > .Enabled = True > > > > > . Visible = True > > > > > > > > > > End With > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a bug. > > One > > > > > thought I had was to delete the control from the form and > reconstruct > > it > > > > > each time new data is presented. But that seems a lot of overhead > if > > it > > > > can > > > > > be avoided. > > > > > > > > > > Many thanks and regards > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 8, 2004 Report Share Posted January 8, 2004 Did you check if VS is copying the new DLL to your Bin\Debug folder ? Can you try the following: - Drop a chart in a brand new Windows Form project. - Create two buttons and add the following code to each button private void button1_Click(object sender, System.EventArgs e) { chart1.ToolBar = true; chart1.OpenData(COD.Values,1,3); chart1.Value[0,0] = 10; chart1.Value[0,1] = 12; chart1.Value[0,2] = 8; chart1.CloseData(COD.Values); } private void button2_Click(object sender, System.EventArgs e) { chart1.ClearData(ClearDataFlag.AllData); chart1.OpenData(COD.Values,1,3); chart1.Value[0,0] = 4; chart1.Value[0,1] = 2; chart1.Value[0,2] = 6; chart1.CloseData(COD.Values); chart1.ToolBar = true; } Press button1, then button2 and check if the toolbar still works for you. -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:ayj1hxf1DHA.3512@WEBSERVER1... > Sorry to say that it seems the latest build doesn't solve the problem - ie > the toolbar buttons don't work after the chart has new data squirted in. As > mentioned before, I am presenting a chart and allowing a user to apply > filters to the data. Once a filter is chosen, I get the subset of data and > redo the chart. Here is the code I am using with the latest service pack > (file version 6.0.1466.20337): > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > ... get the data into a datatable called dtResults, then ... > > nItemCount = dtResults.Rows.Count > nFieldCount = 1 > > For nField = 1 To nFieldCount > ReDim strCats(nItemCount) > ReDim strVals(nItemCount) > > For intCount = 0 To nItemCount - 1 > dr = dtResults.Rows(intCount) > strCats(intCount) = dr.Item(0) > strVals(intCount) = dr.Item(1) > > If fFilter1 Then > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > End If > Next > Next > > With Me.Chart1 > .AxisX.ResetScale() > End With > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > For nField = 0 To nFieldCount - 1 > For nItem = 0 To nItemCount - 1 > Chart1.Value(nField, nItem) = strVals(nItem) > Chart1.Legend(nItem) = strCats(nItem) > Next > Next > > With Me.Chart1 > .CloseData(COD.Values) > .RecalcScale() > .LegendBox = True > .ToolBar = True > .Enabled = True > .Visible = True > End With > > Most grateful if you could advise whether the problem lies in my code or > yours. > > Many thanks > > Sebastian > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:nc0d9DI1DHA.3808@WEBSERVER1... > > I probably did not read your postings correctly but until now I did not > know > > that the bug occurred after a ClearData call. It was a simple bug to fix, > > after the ClearData call we were not re-setting up our event handlers to > > listen for toolbar events. > > > > I apologize for the inconvenience. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Schooner" <schooner@accesswave.ca> wrote in message > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > What exactly was the issue? I reported this just recently and a few > > months > > > ago and all indications were that there was no problem. Just curious > what > > > the issue was. > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > The problem has been fixed and we are uploading a new service pack > > (build > > > > 1466). > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > Greetings, > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > functionality > > > in > > > > > this newsgroup, and I am having the same problem. The toolbar > buttons > > > > work > > > > > fine when my program starts, but once I put new data into the chart, > > > then > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > highlighting), and will toggle on/off just fine, but there isn't any > > > > > functionality. > > > > > > > > > > The state of things is as follows: > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > Visual Studio .NET 2003 > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download > and > > > > > install the service pack for this product, but in the absence of any > > > > > documentation, I'm not sure I've done this properly. The dll file > > > version > > > > > in my project bin folder is 6.0.1353.24745, which does seem to be > the > > > most > > > > > recent. > > > > > > > > > > The chart is first populated when the user selects the Chart tab on > a > > > > > Windows form. I get some data into Category and Value arrays, and > > then > > > > use > > > > > OpenData and CloseData to get the data associated with the chart. > > > > Inasmuch > > > > > as this is working, as is the presentation of new data, I imagine I > > have > > > > got > > > > > this right. The only problem is that the toolbar buttons don't work > > > after > > > > > using ClearData and then fresh input of data. I have tried > > > reinitialising > > > > > all aspects of the chart as follows: > > > > > > > > > > With Me.Chart1 > > > > > > > > > > .CloseData(COD.Values) > > > > > .RecalcScale() > > > > > .ToolBar = True > > > > > .Enabled = True > > > > > . Visible = True > > > > > > > > > > End With > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a bug. > > One > > > > > thought I had was to delete the control from the form and > reconstruct > > it > > > > > each time new data is presented. But that seems a lot of overhead > if > > it > > > > can > > > > > be avoided. > > > > > > > > > > Many thanks and regards > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 9, 2004 Author Report Share Posted January 9, 2004 Hi, Thanks for the response. I have done as you suggested and created a new project. The file version of the chartfx.lite.dll file is as expected in my project folder (and is the same as my main project), viz 6.0.1466.20337. Still the same problem. I press Button1 and get a chart - the toolbar works as expected here. I press Button2 and get an updated chart, but now the toolbar does not function. I would note that if I used the Gallery button to change the type of chart after pressing Button1, then that type of chart is 'carried forward' as the chart type when Button2 is pressed. This holds true for other Toolbar functions as well, eg the gridlines. But the toolbar, while visually looking as if it is working (items look selected if pressed), does not offer actual functionality. I have used VB.NET instead of C# - could this make any difference? Thanks and regards Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:rRnVm7f1DHA.3808@WEBSERVER1... > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > Can you try the following: > > - Drop a chart in a brand new Windows Form project. > - Create two buttons and add the following code to each button > > private void button1_Click(object sender, System.EventArgs e) { > chart1.ToolBar = true; > chart1.OpenData(COD.Values,1,3); > chart1.Value[0,0] = 10; > chart1.Value[0,1] = 12; > chart1.Value[0,2] = 8; > chart1.CloseData(COD.Values); > } > > private void button2_Click(object sender, System.EventArgs e) { > chart1.ClearData(ClearDataFlag.AllData); > chart1.OpenData(COD.Values,1,3); > chart1.Value[0,0] = 4; > chart1.Value[0,1] = 2; > chart1.Value[0,2] = 6; > chart1.CloseData(COD.Values); > chart1.ToolBar = true; > } > > Press button1, then button2 and check if the toolbar still works for you. > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:ayj1hxf1DHA.3512@WEBSERVER1... > > Sorry to say that it seems the latest build doesn't solve the problem - ie > > the toolbar buttons don't work after the chart has new data squirted in. > As > > mentioned before, I am presenting a chart and allowing a user to apply > > filters to the data. Once a filter is chosen, I get the subset of data > and > > redo the chart. Here is the code I am using with the latest service pack > > (file version 6.0.1466.20337): > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > ... get the data into a datatable called dtResults, then ... > > > > nItemCount = dtResults.Rows.Count > > nFieldCount = 1 > > > > For nField = 1 To nFieldCount > > ReDim strCats(nItemCount) > > ReDim strVals(nItemCount) > > > > For intCount = 0 To nItemCount - 1 > > dr = dtResults.Rows(intCount) > > strCats(intCount) = dr.Item(0) > > strVals(intCount) = dr.Item(1) > > > > If fFilter1 Then > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > End If > > Next > > Next > > > > With Me.Chart1 > > .AxisX.ResetScale() > > End With > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > For nField = 0 To nFieldCount - 1 > > For nItem = 0 To nItemCount - 1 > > Chart1.Value(nField, nItem) = strVals(nItem) > > Chart1.Legend(nItem) = strCats(nItem) > > Next > > Next > > > > With Me.Chart1 > > .CloseData(COD.Values) > > .RecalcScale() > > .LegendBox = True > > .ToolBar = True > > .Enabled = True > > .Visible = True > > End With > > > > Most grateful if you could advise whether the problem lies in my code or > > yours. > > > > Many thanks > > > > Sebastian > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > I probably did not read your postings correctly but until now I did not > > know > > > that the bug occurred after a ClearData call. It was a simple bug to > fix, > > > after the ClearData call we were not re-setting up our event handlers to > > > listen for toolbar events. > > > > > > I apologize for the inconvenience. > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > What exactly was the issue? I reported this just recently and a few > > > months > > > > ago and all indications were that there was no problem. Just curious > > what > > > > the issue was. > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > The problem has been fixed and we are uploading a new service pack > > > (build > > > > > 1466). > > > > > > > > > > -- > > > > > Regards, > > > > > > > > > > JC > > > > > Software FX Support > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > Greetings, > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > functionality > > > > in > > > > > > this newsgroup, and I am having the same problem. The toolbar > > buttons > > > > > work > > > > > > fine when my program starts, but once I put new data into the > chart, > > > > then > > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > > highlighting), and will toggle on/off just fine, but there isn't > any > > > > > > functionality. > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > Visual Studio .NET 2003 > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download > > and > > > > > > install the service pack for this product, but in the absence of > any > > > > > > documentation, I'm not sure I've done this properly. The dll file > > > > version > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to be > > the > > > > most > > > > > > recent. > > > > > > > > > > > > The chart is first populated when the user selects the Chart tab > on > > a > > > > > > Windows form. I get some data into Category and Value arrays, and > > > then > > > > > use > > > > > > OpenData and CloseData to get the data associated with the chart. > > > > > Inasmuch > > > > > > as this is working, as is the presentation of new data, I imagine > I > > > have > > > > > got > > > > > > this right. The only problem is that the toolbar buttons don't > work > > > > after > > > > > > using ClearData and then fresh input of data. I have tried > > > > reinitialising > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > .RecalcScale() > > > > > > .ToolBar = True > > > > > > .Enabled = True > > > > > > . Visible = True > > > > > > > > > > > > End With > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > bug. > > > One > > > > > > thought I had was to delete the control from the form and > > reconstruct > > > it > > > > > > each time new data is presented. But that seems a lot of overhead > > if > > > it > > > > > can > > > > > > be avoided. > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 9, 2004 Author Report Share Posted January 9, 2004 Hi, Thanks for the response. I have done as you suggested and created a new project. The file version of the chartfx.lite.dll file is as expected in my project folder (and is the same as my main project), viz 6.0.1466.20337. Still the same problem. I press Button1 and get a chart - the toolbar works as expected here. I press Button2 and get an updated chart, but now the toolbar does not function. I would note that if I used the Gallery button to change the type of chart after pressing Button1, then that type of chart is 'carried forward' as the chart type when Button2 is pressed. This holds true for other Toolbar functions as well, eg the gridlines. But the toolbar, while visually looking as if it is working (items look selected if pressed), does not offer actual functionality. I have used VB.NET instead of C# - could this make any difference? Thanks and regards Sebastian "SoftwareFX Support" <support@softwarefx.com> wrote in message news:rRnVm7f1DHA.3808@WEBSERVER1... > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > Can you try the following: > > - Drop a chart in a brand new Windows Form project. > - Create two buttons and add the following code to each button > > private void button1_Click(object sender, System.EventArgs e) { > chart1.ToolBar = true; > chart1.OpenData(COD.Values,1,3); > chart1.Value[0,0] = 10; > chart1.Value[0,1] = 12; > chart1.Value[0,2] = 8; > chart1.CloseData(COD.Values); > } > > private void button2_Click(object sender, System.EventArgs e) { > chart1.ClearData(ClearDataFlag.AllData); > chart1.OpenData(COD.Values,1,3); > chart1.Value[0,0] = 4; > chart1.Value[0,1] = 2; > chart1.Value[0,2] = 6; > chart1.CloseData(COD.Values); > chart1.ToolBar = true; > } > > Press button1, then button2 and check if the toolbar still works for you. > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:ayj1hxf1DHA.3512@WEBSERVER1... > > Sorry to say that it seems the latest build doesn't solve the problem - ie > > the toolbar buttons don't work after the chart has new data squirted in. > As > > mentioned before, I am presenting a chart and allowing a user to apply > > filters to the data. Once a filter is chosen, I get the subset of data > and > > redo the chart. Here is the code I am using with the latest service pack > > (file version 6.0.1466.20337): > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > ... get the data into a datatable called dtResults, then ... > > > > nItemCount = dtResults.Rows.Count > > nFieldCount = 1 > > > > For nField = 1 To nFieldCount > > ReDim strCats(nItemCount) > > ReDim strVals(nItemCount) > > > > For intCount = 0 To nItemCount - 1 > > dr = dtResults.Rows(intCount) > > strCats(intCount) = dr.Item(0) > > strVals(intCount) = dr.Item(1) > > > > If fFilter1 Then > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > End If > > Next > > Next > > > > With Me.Chart1 > > .AxisX.ResetScale() > > End With > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > For nField = 0 To nFieldCount - 1 > > For nItem = 0 To nItemCount - 1 > > Chart1.Value(nField, nItem) = strVals(nItem) > > Chart1.Legend(nItem) = strCats(nItem) > > Next > > Next > > > > With Me.Chart1 > > .CloseData(COD.Values) > > .RecalcScale() > > .LegendBox = True > > .ToolBar = True > > .Enabled = True > > .Visible = True > > End With > > > > Most grateful if you could advise whether the problem lies in my code or > > yours. > > > > Many thanks > > > > Sebastian > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > I probably did not read your postings correctly but until now I did not > > know > > > that the bug occurred after a ClearData call. It was a simple bug to > fix, > > > after the ClearData call we were not re-setting up our event handlers to > > > listen for toolbar events. > > > > > > I apologize for the inconvenience. > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > What exactly was the issue? I reported this just recently and a few > > > months > > > > ago and all indications were that there was no problem. Just curious > > what > > > > the issue was. > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > The problem has been fixed and we are uploading a new service pack > > > (build > > > > > 1466). > > > > > > > > > > -- > > > > > Regards, > > > > > > > > > > JC > > > > > Software FX Support > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > Greetings, > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > functionality > > > > in > > > > > > this newsgroup, and I am having the same problem. The toolbar > > buttons > > > > > work > > > > > > fine when my program starts, but once I put new data into the > chart, > > > > then > > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > > highlighting), and will toggle on/off just fine, but there isn't > any > > > > > > functionality. > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > Visual Studio .NET 2003 > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to download > > and > > > > > > install the service pack for this product, but in the absence of > any > > > > > > documentation, I'm not sure I've done this properly. The dll file > > > > version > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to be > > the > > > > most > > > > > > recent. > > > > > > > > > > > > The chart is first populated when the user selects the Chart tab > on > > a > > > > > > Windows form. I get some data into Category and Value arrays, and > > > then > > > > > use > > > > > > OpenData and CloseData to get the data associated with the chart. > > > > > Inasmuch > > > > > > as this is working, as is the presentation of new data, I imagine > I > > > have > > > > > got > > > > > > this right. The only problem is that the toolbar buttons don't > work > > > > after > > > > > > using ClearData and then fresh input of data. I have tried > > > > reinitialising > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > .RecalcScale() > > > > > > .ToolBar = True > > > > > > .Enabled = True > > > > > > . Visible = True > > > > > > > > > > > > End With > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > bug. > > > One > > > > > > thought I had was to delete the control from the form and > > reconstruct > > > it > > > > > > each time new data is presented. But that seems a lot of overhead > > if > > > it > > > > > can > > > > > > be avoided. > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2004 Report Share Posted January 21, 2004 I retried this scenario with the current public build (6.0.1466.39648) and it worked fine. I will try to email you this dll to see if it makes any difference. Are you using VS.NET 2002 or 2003 ? -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:s3EdFXs1DHA.3072@WEBSERVER1... > Hi, > > Thanks for the response. I have done as you suggested and created a new > project. The file version of the chartfx.lite.dll file is as expected in my > project folder (and is the same as my main project), viz 6.0.1466.20337. > > Still the same problem. I press Button1 and get a chart - the toolbar works > as expected here. > > I press Button2 and get an updated chart, but now the toolbar does not > function. I would note that if I used the Gallery button to change the type > of chart after pressing Button1, then that type of chart is 'carried > forward' as the chart type when Button2 is pressed. This holds true for > other Toolbar functions as well, eg the gridlines. > > But the toolbar, while visually looking as if it is working (items look > selected if pressed), does not offer actual functionality. > > I have used VB.NET instead of C# - could this make any difference? > > Thanks and regards > > Sebastian > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:rRnVm7f1DHA.3808@WEBSERVER1... > > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > > > Can you try the following: > > > > - Drop a chart in a brand new Windows Form project. > > - Create two buttons and add the following code to each button > > > > private void button1_Click(object sender, System.EventArgs e) { > > chart1.ToolBar = true; > > chart1.OpenData(COD.Values,1,3); > > chart1.Value[0,0] = 10; > > chart1.Value[0,1] = 12; > > chart1.Value[0,2] = 8; > > chart1.CloseData(COD.Values); > > } > > > > private void button2_Click(object sender, System.EventArgs e) { > > chart1.ClearData(ClearDataFlag.AllData); > > chart1.OpenData(COD.Values,1,3); > > chart1.Value[0,0] = 4; > > chart1.Value[0,1] = 2; > > chart1.Value[0,2] = 6; > > chart1.CloseData(COD.Values); > > chart1.ToolBar = true; > > } > > > > Press button1, then button2 and check if the toolbar still works for you. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > news:ayj1hxf1DHA.3512@WEBSERVER1... > > > Sorry to say that it seems the latest build doesn't solve the problem - > ie > > > the toolbar buttons don't work after the chart has new data squirted in. > > As > > > mentioned before, I am presenting a chart and allowing a user to apply > > > filters to the data. Once a filter is chosen, I get the subset of data > > and > > > redo the chart. Here is the code I am using with the latest service pack > > > (file version 6.0.1466.20337): > > > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > > > ... get the data into a datatable called dtResults, then ... > > > > > > nItemCount = dtResults.Rows.Count > > > nFieldCount = 1 > > > > > > For nField = 1 To nFieldCount > > > ReDim strCats(nItemCount) > > > ReDim strVals(nItemCount) > > > > > > For intCount = 0 To nItemCount - 1 > > > dr = dtResults.Rows(intCount) > > > strCats(intCount) = dr.Item(0) > > > strVals(intCount) = dr.Item(1) > > > > > > If fFilter1 Then > > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > > End If > > > Next > > > Next > > > > > > With Me.Chart1 > > > .AxisX.ResetScale() > > > End With > > > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > > > For nField = 0 To nFieldCount - 1 > > > For nItem = 0 To nItemCount - 1 > > > Chart1.Value(nField, nItem) = strVals(nItem) > > > Chart1.Legend(nItem) = strCats(nItem) > > > Next > > > Next > > > > > > With Me.Chart1 > > > .CloseData(COD.Values) > > > .RecalcScale() > > > .LegendBox = True > > > .ToolBar = True > > > .Enabled = True > > > .Visible = True > > > End With > > > > > > Most grateful if you could advise whether the problem lies in my code or > > > yours. > > > > > > Many thanks > > > > > > Sebastian > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > > I probably did not read your postings correctly but until now I did > not > > > know > > > > that the bug occurred after a ClearData call. It was a simple bug to > > fix, > > > > after the ClearData call we were not re-setting up our event handlers > to > > > > listen for toolbar events. > > > > > > > > I apologize for the inconvenience. > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > > What exactly was the issue? I reported this just recently and a few > > > > months > > > > > ago and all indications were that there was no problem. Just > curious > > > what > > > > > the issue was. > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > > The problem has been fixed and we are uploading a new service pack > > > > (build > > > > > > 1466). > > > > > > > > > > > > -- > > > > > > Regards, > > > > > > > > > > > > JC > > > > > > Software FX Support > > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > > Greetings, > > > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > > functionality > > > > > in > > > > > > > this newsgroup, and I am having the same problem. The toolbar > > > buttons > > > > > > work > > > > > > > fine when my program starts, but once I put new data into the > > chart, > > > > > then > > > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > > > highlighting), and will toggle on/off just fine, but there isn't > > any > > > > > > > functionality. > > > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > > Visual Studio .NET 2003 > > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to > download > > > and > > > > > > > install the service pack for this product, but in the absence of > > any > > > > > > > documentation, I'm not sure I've done this properly. The dll > file > > > > > version > > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to > be > > > the > > > > > most > > > > > > > recent. > > > > > > > > > > > > > > The chart is first populated when the user selects the Chart tab > > on > > > a > > > > > > > Windows form. I get some data into Category and Value arrays, > and > > > > then > > > > > > use > > > > > > > OpenData and CloseData to get the data associated with the > chart. > > > > > > Inasmuch > > > > > > > as this is working, as is the presentation of new data, I > imagine > > I > > > > have > > > > > > got > > > > > > > this right. The only problem is that the toolbar buttons don't > > work > > > > > after > > > > > > > using ClearData and then fresh input of data. I have tried > > > > > reinitialising > > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > > .RecalcScale() > > > > > > > .ToolBar = True > > > > > > > .Enabled = True > > > > > > > . Visible = True > > > > > > > > > > > > > > End With > > > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > > bug. > > > > One > > > > > > > thought I had was to delete the control from the form and > > > reconstruct > > > > it > > > > > > > each time new data is presented. But that seems a lot of > overhead > > > if > > > > it > > > > > > can > > > > > > > be avoided. > > > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2004 Report Share Posted January 21, 2004 I retried this scenario with the current public build (6.0.1466.39648) and it worked fine. I will try to email you this dll to see if it makes any difference. Are you using VS.NET 2002 or 2003 ? -- Regards, JC Software FX Support "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message news:s3EdFXs1DHA.3072@WEBSERVER1... > Hi, > > Thanks for the response. I have done as you suggested and created a new > project. The file version of the chartfx.lite.dll file is as expected in my > project folder (and is the same as my main project), viz 6.0.1466.20337. > > Still the same problem. I press Button1 and get a chart - the toolbar works > as expected here. > > I press Button2 and get an updated chart, but now the toolbar does not > function. I would note that if I used the Gallery button to change the type > of chart after pressing Button1, then that type of chart is 'carried > forward' as the chart type when Button2 is pressed. This holds true for > other Toolbar functions as well, eg the gridlines. > > But the toolbar, while visually looking as if it is working (items look > selected if pressed), does not offer actual functionality. > > I have used VB.NET instead of C# - could this make any difference? > > Thanks and regards > > Sebastian > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:rRnVm7f1DHA.3808@WEBSERVER1... > > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > > > Can you try the following: > > > > - Drop a chart in a brand new Windows Form project. > > - Create two buttons and add the following code to each button > > > > private void button1_Click(object sender, System.EventArgs e) { > > chart1.ToolBar = true; > > chart1.OpenData(COD.Values,1,3); > > chart1.Value[0,0] = 10; > > chart1.Value[0,1] = 12; > > chart1.Value[0,2] = 8; > > chart1.CloseData(COD.Values); > > } > > > > private void button2_Click(object sender, System.EventArgs e) { > > chart1.ClearData(ClearDataFlag.AllData); > > chart1.OpenData(COD.Values,1,3); > > chart1.Value[0,0] = 4; > > chart1.Value[0,1] = 2; > > chart1.Value[0,2] = 6; > > chart1.CloseData(COD.Values); > > chart1.ToolBar = true; > > } > > > > Press button1, then button2 and check if the toolbar still works for you. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > news:ayj1hxf1DHA.3512@WEBSERVER1... > > > Sorry to say that it seems the latest build doesn't solve the problem - > ie > > > the toolbar buttons don't work after the chart has new data squirted in. > > As > > > mentioned before, I am presenting a chart and allowing a user to apply > > > filters to the data. Once a filter is chosen, I get the subset of data > > and > > > redo the chart. Here is the code I am using with the latest service pack > > > (file version 6.0.1466.20337): > > > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > > > ... get the data into a datatable called dtResults, then ... > > > > > > nItemCount = dtResults.Rows.Count > > > nFieldCount = 1 > > > > > > For nField = 1 To nFieldCount > > > ReDim strCats(nItemCount) > > > ReDim strVals(nItemCount) > > > > > > For intCount = 0 To nItemCount - 1 > > > dr = dtResults.Rows(intCount) > > > strCats(intCount) = dr.Item(0) > > > strVals(intCount) = dr.Item(1) > > > > > > If fFilter1 Then > > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > > End If > > > Next > > > Next > > > > > > With Me.Chart1 > > > .AxisX.ResetScale() > > > End With > > > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > > > For nField = 0 To nFieldCount - 1 > > > For nItem = 0 To nItemCount - 1 > > > Chart1.Value(nField, nItem) = strVals(nItem) > > > Chart1.Legend(nItem) = strCats(nItem) > > > Next > > > Next > > > > > > With Me.Chart1 > > > .CloseData(COD.Values) > > > .RecalcScale() > > > .LegendBox = True > > > .ToolBar = True > > > .Enabled = True > > > .Visible = True > > > End With > > > > > > Most grateful if you could advise whether the problem lies in my code or > > > yours. > > > > > > Many thanks > > > > > > Sebastian > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > > I probably did not read your postings correctly but until now I did > not > > > know > > > > that the bug occurred after a ClearData call. It was a simple bug to > > fix, > > > > after the ClearData call we were not re-setting up our event handlers > to > > > > listen for toolbar events. > > > > > > > > I apologize for the inconvenience. > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > > What exactly was the issue? I reported this just recently and a few > > > > months > > > > > ago and all indications were that there was no problem. Just > curious > > > what > > > > > the issue was. > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > > The problem has been fixed and we are uploading a new service pack > > > > (build > > > > > > 1466). > > > > > > > > > > > > -- > > > > > > Regards, > > > > > > > > > > > > JC > > > > > > Software FX Support > > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > > Greetings, > > > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > > functionality > > > > > in > > > > > > > this newsgroup, and I am having the same problem. The toolbar > > > buttons > > > > > > work > > > > > > > fine when my program starts, but once I put new data into the > > chart, > > > > > then > > > > > > > the buttons stop working. They indicate a pressed state (slight > > > > > > > highlighting), and will toggle on/off just fine, but there isn't > > any > > > > > > > functionality. > > > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > > Visual Studio .NET 2003 > > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to > download > > > and > > > > > > > install the service pack for this product, but in the absence of > > any > > > > > > > documentation, I'm not sure I've done this properly. The dll > file > > > > > version > > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to > be > > > the > > > > > most > > > > > > > recent. > > > > > > > > > > > > > > The chart is first populated when the user selects the Chart tab > > on > > > a > > > > > > > Windows form. I get some data into Category and Value arrays, > and > > > > then > > > > > > use > > > > > > > OpenData and CloseData to get the data associated with the > chart. > > > > > > Inasmuch > > > > > > > as this is working, as is the presentation of new data, I > imagine > > I > > > > have > > > > > > got > > > > > > > this right. The only problem is that the toolbar buttons don't > > work > > > > > after > > > > > > > using ClearData and then fresh input of data. I have tried > > > > > reinitialising > > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > > .RecalcScale() > > > > > > > .ToolBar = True > > > > > > > .Enabled = True > > > > > > > . Visible = True > > > > > > > > > > > > > > End With > > > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > > bug. > > > > One > > > > > > > thought I had was to delete the control from the form and > > > reconstruct > > > > it > > > > > > > each time new data is presented. But that seems a lot of > overhead > > > if > > > > it > > > > > > can > > > > > > > be avoided. > > > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 22, 2004 Author Report Share Posted January 22, 2004 2003.. and thank you "SoftwareFX Support" <support@softwarefx.com> wrote in message news:zPY7BAD4DHA.2468@webserver3.softwarefx.com... > I retried this scenario with the current public build (6.0.1466.39648) and > it worked fine. I will try to email you this dll to see if it makes any > difference. Are you using VS.NET 2002 or 2003 ? > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:s3EdFXs1DHA.3072@WEBSERVER1... > > Hi, > > > > Thanks for the response. I have done as you suggested and created a new > > project. The file version of the chartfx.lite.dll file is as expected in > my > > project folder (and is the same as my main project), viz 6.0.1466.20337. > > > > Still the same problem. I press Button1 and get a chart - the toolbar > works > > as expected here. > > > > I press Button2 and get an updated chart, but now the toolbar does not > > function. I would note that if I used the Gallery button to change the > type > > of chart after pressing Button1, then that type of chart is 'carried > > forward' as the chart type when Button2 is pressed. This holds true for > > other Toolbar functions as well, eg the gridlines. > > > > But the toolbar, while visually looking as if it is working (items look > > selected if pressed), does not offer actual functionality. > > > > I have used VB.NET instead of C# - could this make any difference? > > > > Thanks and regards > > > > Sebastian > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:rRnVm7f1DHA.3808@WEBSERVER1... > > > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > > > > > Can you try the following: > > > > > > - Drop a chart in a brand new Windows Form project. > > > - Create two buttons and add the following code to each button > > > > > > private void button1_Click(object sender, System.EventArgs e) { > > > chart1.ToolBar = true; > > > chart1.OpenData(COD.Values,1,3); > > > chart1.Value[0,0] = 10; > > > chart1.Value[0,1] = 12; > > > chart1.Value[0,2] = 8; > > > chart1.CloseData(COD.Values); > > > } > > > > > > private void button2_Click(object sender, System.EventArgs e) { > > > chart1.ClearData(ClearDataFlag.AllData); > > > chart1.OpenData(COD.Values,1,3); > > > chart1.Value[0,0] = 4; > > > chart1.Value[0,1] = 2; > > > chart1.Value[0,2] = 6; > > > chart1.CloseData(COD.Values); > > > chart1.ToolBar = true; > > > } > > > > > > Press button1, then button2 and check if the toolbar still works for > you. > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > news:ayj1hxf1DHA.3512@WEBSERVER1... > > > > Sorry to say that it seems the latest build doesn't solve the > problem - > > ie > > > > the toolbar buttons don't work after the chart has new data squirted > in. > > > As > > > > mentioned before, I am presenting a chart and allowing a user to apply > > > > filters to the data. Once a filter is chosen, I get the subset of > data > > > and > > > > redo the chart. Here is the code I am using with the latest service > pack > > > > (file version 6.0.1466.20337): > > > > > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > > > > > ... get the data into a datatable called dtResults, then ... > > > > > > > > nItemCount = dtResults.Rows.Count > > > > nFieldCount = 1 > > > > > > > > For nField = 1 To nFieldCount > > > > ReDim strCats(nItemCount) > > > > ReDim strVals(nItemCount) > > > > > > > > For intCount = 0 To nItemCount - 1 > > > > dr = dtResults.Rows(intCount) > > > > strCats(intCount) = dr.Item(0) > > > > strVals(intCount) = dr.Item(1) > > > > > > > > If fFilter1 Then > > > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > > > End If > > > > Next > > > > Next > > > > > > > > With Me.Chart1 > > > > .AxisX.ResetScale() > > > > End With > > > > > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > > > > > For nField = 0 To nFieldCount - 1 > > > > For nItem = 0 To nItemCount - 1 > > > > Chart1.Value(nField, nItem) = strVals(nItem) > > > > Chart1.Legend(nItem) = strCats(nItem) > > > > Next > > > > Next > > > > > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > > > .RecalcScale() > > > > .LegendBox = True > > > > .ToolBar = True > > > > .Enabled = True > > > > .Visible = True > > > > End With > > > > > > > > Most grateful if you could advise whether the problem lies in my code > or > > > > yours. > > > > > > > > Many thanks > > > > > > > > Sebastian > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > > > I probably did not read your postings correctly but until now I did > > not > > > > know > > > > > that the bug occurred after a ClearData call. It was a simple bug to > > > fix, > > > > > after the ClearData call we were not re-setting up our event > handlers > > to > > > > > listen for toolbar events. > > > > > > > > > > I apologize for the inconvenience. > > > > > > > > > > -- > > > > > Regards, > > > > > > > > > > JC > > > > > Software FX Support > > > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > > > What exactly was the issue? I reported this just recently and a > few > > > > > months > > > > > > ago and all indications were that there was no problem. Just > > curious > > > > what > > > > > > the issue was. > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > > > The problem has been fixed and we are uploading a new service > pack > > > > > (build > > > > > > > 1466). > > > > > > > > > > > > > > -- > > > > > > > Regards, > > > > > > > > > > > > > > JC > > > > > > > Software FX Support > > > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > > > Greetings, > > > > > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > > > functionality > > > > > > in > > > > > > > > this newsgroup, and I am having the same problem. The toolbar > > > > buttons > > > > > > > work > > > > > > > > fine when my program starts, but once I put new data into the > > > chart, > > > > > > then > > > > > > > > the buttons stop working. They indicate a pressed state > (slight > > > > > > > > highlighting), and will toggle on/off just fine, but there > isn't > > > any > > > > > > > > functionality. > > > > > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > > > Visual Studio .NET 2003 > > > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to > > download > > > > and > > > > > > > > install the service pack for this product, but in the absence > of > > > any > > > > > > > > documentation, I'm not sure I've done this properly. The dll > > file > > > > > > version > > > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to > > be > > > > the > > > > > > most > > > > > > > > recent. > > > > > > > > > > > > > > > > The chart is first populated when the user selects the Chart > tab > > > on > > > > a > > > > > > > > Windows form. I get some data into Category and Value arrays, > > and > > > > > then > > > > > > > use > > > > > > > > OpenData and CloseData to get the data associated with the > > chart. > > > > > > > Inasmuch > > > > > > > > as this is working, as is the presentation of new data, I > > imagine > > > I > > > > > have > > > > > > > got > > > > > > > > this right. The only problem is that the toolbar buttons > don't > > > work > > > > > > after > > > > > > > > using ClearData and then fresh input of data. I have tried > > > > > > reinitialising > > > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > > > .RecalcScale() > > > > > > > > .ToolBar = True > > > > > > > > .Enabled = True > > > > > > > > . Visible = True > > > > > > > > > > > > > > > > End With > > > > > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > > > bug. > > > > > One > > > > > > > > thought I had was to delete the control from the form and > > > > reconstruct > > > > > it > > > > > > > > each time new data is presented. But that seems a lot of > > overhead > > > > if > > > > > it > > > > > > > can > > > > > > > > be avoided. > > > > > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 22, 2004 Author Report Share Posted January 22, 2004 2003.. and thank you "SoftwareFX Support" <support@softwarefx.com> wrote in message news:zPY7BAD4DHA.2468@webserver3.softwarefx.com... > I retried this scenario with the current public build (6.0.1466.39648) and > it worked fine. I will try to email you this dll to see if it makes any > difference. Are you using VS.NET 2002 or 2003 ? > > -- > Regards, > > JC > Software FX Support > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > news:s3EdFXs1DHA.3072@WEBSERVER1... > > Hi, > > > > Thanks for the response. I have done as you suggested and created a new > > project. The file version of the chartfx.lite.dll file is as expected in > my > > project folder (and is the same as my main project), viz 6.0.1466.20337. > > > > Still the same problem. I press Button1 and get a chart - the toolbar > works > > as expected here. > > > > I press Button2 and get an updated chart, but now the toolbar does not > > function. I would note that if I used the Gallery button to change the > type > > of chart after pressing Button1, then that type of chart is 'carried > > forward' as the chart type when Button2 is pressed. This holds true for > > other Toolbar functions as well, eg the gridlines. > > > > But the toolbar, while visually looking as if it is working (items look > > selected if pressed), does not offer actual functionality. > > > > I have used VB.NET instead of C# - could this make any difference? > > > > Thanks and regards > > > > Sebastian > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:rRnVm7f1DHA.3808@WEBSERVER1... > > > Did you check if VS is copying the new DLL to your Bin\Debug folder ? > > > > > > Can you try the following: > > > > > > - Drop a chart in a brand new Windows Form project. > > > - Create two buttons and add the following code to each button > > > > > > private void button1_Click(object sender, System.EventArgs e) { > > > chart1.ToolBar = true; > > > chart1.OpenData(COD.Values,1,3); > > > chart1.Value[0,0] = 10; > > > chart1.Value[0,1] = 12; > > > chart1.Value[0,2] = 8; > > > chart1.CloseData(COD.Values); > > > } > > > > > > private void button2_Click(object sender, System.EventArgs e) { > > > chart1.ClearData(ClearDataFlag.AllData); > > > chart1.OpenData(COD.Values,1,3); > > > chart1.Value[0,0] = 4; > > > chart1.Value[0,1] = 2; > > > chart1.Value[0,2] = 6; > > > chart1.CloseData(COD.Values); > > > chart1.ToolBar = true; > > > } > > > > > > Press button1, then button2 and check if the toolbar still works for > you. > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > news:ayj1hxf1DHA.3512@WEBSERVER1... > > > > Sorry to say that it seems the latest build doesn't solve the > problem - > > ie > > > > the toolbar buttons don't work after the chart has new data squirted > in. > > > As > > > > mentioned before, I am presenting a chart and allowing a user to apply > > > > filters to the data. Once a filter is chosen, I get the subset of > data > > > and > > > > redo the chart. Here is the code I am using with the latest service > pack > > > > (file version 6.0.1466.20337): > > > > > > > > Me.Chart1.ClearData(ClearDataFlag.AllData) > > > > > > > > ... get the data into a datatable called dtResults, then ... > > > > > > > > nItemCount = dtResults.Rows.Count > > > > nFieldCount = 1 > > > > > > > > For nField = 1 To nFieldCount > > > > ReDim strCats(nItemCount) > > > > ReDim strVals(nItemCount) > > > > > > > > For intCount = 0 To nItemCount - 1 > > > > dr = dtResults.Rows(intCount) > > > > strCats(intCount) = dr.Item(0) > > > > strVals(intCount) = dr.Item(1) > > > > > > > > If fFilter1 Then > > > > Me.cboP1Filter2.Items.Add(dr.Item(0).ToString) > > > > End If > > > > Next > > > > Next > > > > > > > > With Me.Chart1 > > > > .AxisX.ResetScale() > > > > End With > > > > > > > > Chart1.OpenData(COD.Values, nFieldCount, nItemCount) > > > > > > > > For nField = 0 To nFieldCount - 1 > > > > For nItem = 0 To nItemCount - 1 > > > > Chart1.Value(nField, nItem) = strVals(nItem) > > > > Chart1.Legend(nItem) = strCats(nItem) > > > > Next > > > > Next > > > > > > > > With Me.Chart1 > > > > .CloseData(COD.Values) > > > > .RecalcScale() > > > > .LegendBox = True > > > > .ToolBar = True > > > > .Enabled = True > > > > .Visible = True > > > > End With > > > > > > > > Most grateful if you could advise whether the problem lies in my code > or > > > > yours. > > > > > > > > Many thanks > > > > > > > > Sebastian > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > news:nc0d9DI1DHA.3808@WEBSERVER1... > > > > > I probably did not read your postings correctly but until now I did > > not > > > > know > > > > > that the bug occurred after a ClearData call. It was a simple bug to > > > fix, > > > > > after the ClearData call we were not re-setting up our event > handlers > > to > > > > > listen for toolbar events. > > > > > > > > > > I apologize for the inconvenience. > > > > > > > > > > -- > > > > > Regards, > > > > > > > > > > JC > > > > > Software FX Support > > > > > "Schooner" <schooner@accesswave.ca> wrote in message > > > > > news:FmgfvsH1DHA.3512@WEBSERVER1... > > > > > > What exactly was the issue? I reported this just recently and a > few > > > > > months > > > > > > ago and all indications were that there was no problem. Just > > curious > > > > what > > > > > > the issue was. > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > > > news:EDeutoH1DHA.3808@WEBSERVER1... > > > > > > > The problem has been fixed and we are uploading a new service > pack > > > > > (build > > > > > > > 1466). > > > > > > > > > > > > > > -- > > > > > > > Regards, > > > > > > > > > > > > > > JC > > > > > > > Software FX Support > > > > > > > "Sebastian Crewe" <jsc_nospam@netcomuk.co.uk> wrote in message > > > > > > > news:CK7tCdG1DHA.3512@WEBSERVER1... > > > > > > > > Greetings, > > > > > > > > > > > > > > > > I see a couple of references to the ChartFX Lite Toolbar > > > > functionality > > > > > > in > > > > > > > > this newsgroup, and I am having the same problem. The toolbar > > > > buttons > > > > > > > work > > > > > > > > fine when my program starts, but once I put new data into the > > > chart, > > > > > > then > > > > > > > > the buttons stop working. They indicate a pressed state > (slight > > > > > > > > highlighting), and will toggle on/off just fine, but there > isn't > > > any > > > > > > > > functionality. > > > > > > > > > > > > > > > > The state of things is as follows: > > > > > > > > > > > > > > > > Windows XP Professional laptop, SP1a > > > > > > > > Visual Studio .NET 2003 > > > > > > > > ChartFX Lite, assembly version 6.0.839. I have tried to > > download > > > > and > > > > > > > > install the service pack for this product, but in the absence > of > > > any > > > > > > > > documentation, I'm not sure I've done this properly. The dll > > file > > > > > > version > > > > > > > > in my project bin folder is 6.0.1353.24745, which does seem to > > be > > > > the > > > > > > most > > > > > > > > recent. > > > > > > > > > > > > > > > > The chart is first populated when the user selects the Chart > tab > > > on > > > > a > > > > > > > > Windows form. I get some data into Category and Value arrays, > > and > > > > > then > > > > > > > use > > > > > > > > OpenData and CloseData to get the data associated with the > > chart. > > > > > > > Inasmuch > > > > > > > > as this is working, as is the presentation of new data, I > > imagine > > > I > > > > > have > > > > > > > got > > > > > > > > this right. The only problem is that the toolbar buttons > don't > > > work > > > > > > after > > > > > > > > using ClearData and then fresh input of data. I have tried > > > > > > reinitialising > > > > > > > > all aspects of the chart as follows: > > > > > > > > > > > > > > > > With Me.Chart1 > > > > > > > > > > > > > > > > .CloseData(COD.Values) > > > > > > > > .RecalcScale() > > > > > > > > .ToolBar = True > > > > > > > > .Enabled = True > > > > > > > > . Visible = True > > > > > > > > > > > > > > > > End With > > > > > > > > > > > > > > > > Most grateful for any pointers, or confirmation that this is a > > > bug. > > > > > One > > > > > > > > thought I had was to delete the control from the form and > > > > reconstruct > > > > > it > > > > > > > > each time new data is presented. But that seems a lot of > > overhead > > > > if > > > > > it > > > > > > > can > > > > > > > > be avoided. > > > > > > > > > > > > > > > > Many thanks and regards > > > > > > > > > > > > > > > > Sebastian Crewe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.