Search found 1184 matches

by Christopher
Thu Aug 29, 2019 3:46 pm
Forum: .NET
Topic: [WPF] How to set TeeChart.licenses file for a plugin assembly
Replies: 7
Views: 512

Re: [WPF] How to set TeeChart.licenses file for a plugin assembly

For further readers there is also a compromise option to create "steema.resources" resource-file at starting assembly location and put there a resource named "TeeChart" containing the license. Though it definitely not plugin-usage scenario. There is indeed the possibility of wrapping the TeeChart.l...
by Christopher
Thu Aug 29, 2019 3:04 pm
Forum: .NET
Topic: [WPF] How to set TeeChart.licenses file for a plugin assembly
Replies: 7
Views: 512

Re: [WPF] How to set TeeChart.licenses file for a plugin assembly

Our concern is that our class library could be wrapped in another class library with full licencing - and so without a watermark - only to be resold. This would be in clear violation of our license agreement. It is for this reason that the only publically available option, in the very exceptional ca...
by Christopher
Wed Aug 28, 2019 7:47 am
Forum: .NET
Topic: [WPF] How to set TeeChart.licenses file for a plugin assembly
Replies: 7
Views: 512

Re: [WPF] How to set TeeChart.licenses file for a plugin assembly

Hello, I need to embed license not in a starting app assembly, but in dependency assembly which actually uses TChart. Even if you don't have access to the executing assembly, if you drop the TeeChart.licenses file into the same directory as the executable and the two class libraries (your wrapper cl...
by Christopher
Tue Aug 27, 2019 3:36 pm
Forum: .NET
Topic: [WPF] How to set TeeChart.licenses file for a plugin assembly
Replies: 7
Views: 512

Re: [WPF] How to set TeeChart.licenses file for a plugin assembly

Have you tried adding the EntryAssembly attribute to the AssemblyInfo of your non-exe assembly (A)? The gif here shows you how to do this (in the context of an ASP.NET app).
by Christopher
Thu Aug 22, 2019 8:11 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 302

Re: Changing line series color in runtime is not working

bairog wrote:
Thu Aug 22, 2019 8:02 am
With your code all points are Blue (some of them should be Tomato or Gold as the corresponding lines are):
Ah, so you don't want all the Pointers to be of the same color? In which case, change the following line:

Code: Select all

 oldColor = line1.Pointer.Color = Color.Blue;
to this:

Code: Select all

oldColor = Color.Blue;
by Christopher
Thu Aug 22, 2019 7:34 am
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 302

Re: Changing line series color in runtime is not working

But when I uncomment that line (where I manually change line color to Blue) - all point are Blue despite I'm setting every point color explicitly in the Add function: In this scenario there is no need to complicate matters with the series color at all, i.e. public partial class Form1 : Form { priva...
by Christopher
Wed Aug 21, 2019 3:07 pm
Forum: .NET
Topic: Changing line series color in runtime is not working
Replies: 6
Views: 302

Re: Changing line series color in runtime is not working

That's because you're adding in point colors to your series: lineActualData.Add(i, Values[i].ActualValue, Values[i].FlightDate.ToString(dateTimeMask) + " " + Values[i].FlightShift + " " + Values[i].FlightNum, lineActualData.Color); lineEquivalentData.Add(i, Values[i].EquivalentValue, Values[i].Fligh...
by Christopher
Wed Aug 21, 2019 2:50 pm
Forum: .NET
Topic: How to cast Steema.TeeChart.Chart class to Steema.TeeChart.TChart class
Replies: 1
Views: 109

Re: How to cast Steema.TeeChart.Chart class to Steema.TeeChart.TChart class

You could try using the Parent property, i.e. private void TChart1_ClickSeries(object sender, Series s, int valueIndex, MouseEventArgs e) { var tchart = sender as Chart; var parent = tchart.Parent; MessageBox.Show(parent.GetControl().Name); }
by Christopher
Tue Aug 13, 2019 10:38 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 666

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Looks like it's working now, many thanks. You're welcome. Could you explain please, why that collection has more items despite of the fact that I've added _count points? The Value field is public but is for internal use. If you are uncomfortable using it, you can use the more standard API calls: Li...
by Christopher
Tue Aug 13, 2019 8:00 am
Forum: .NET
Topic: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)
Replies: 18
Views: 1988

Re: Is it possible to use TeeChart v4 Pro in WinForms application (.NET Core 3 preview)

bairog wrote:
Tue Aug 13, 2019 6:21 am
I'm asking because for example the ticket id=2221 has already been fixed in new build ( Steema.TeeChart.NET 4.2019.8.8) but .NET Core assemblies were not updated.
As you correctly point out, this is because the TeeChart .NET Core assemblies are still in pre-release.
by Christopher
Tue Aug 13, 2019 7:58 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 666

Re: FirstVisibleIndex and LastVisibleIndex while zooming

Hello, okay, well, another variation on an earlier technique seems to work in these circumstances, i.e. public partial class Form1 : Form { //max visible labels private const Int32 maxDisplayedLabelsForBottomaAxis = 20; List<string> _labels = new List<string>(); int _count; public Form1() { var rnd ...
by Christopher
Tue Aug 13, 2019 6:40 am
Forum: .NET
Topic: ScrollPager too long
Replies: 5
Views: 219

Re: ScrollPager too long

LebbingUser wrote:
Mon Aug 12, 2019 1:06 pm
But I got good news, I solved the problem!
That's excellent, I'm pleased to hear it!
LebbingUser wrote:
Mon Aug 12, 2019 1:06 pm
Thank you very much for your help!
If only helping other people was as simple as that :D
by Christopher
Mon Aug 12, 2019 11:41 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 666

Re: FirstVisibleIndex and LastVisibleIndex while zooming

bairog wrote:
Mon Aug 12, 2019 10:55 am
So how to deal with that? Is there a way to disable automatic thinning that is performed by chart itself?
Try setting the Labels separation to zero, e.g.

Code: Select all

            tChart1.Axes.Bottom.Labels.Separation = 0;
            tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text;
by Christopher
Mon Aug 12, 2019 9:34 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 666

Re: FirstVisibleIndex and LastVisibleIndex while zooming

And now I cannot dispose that Labels collection until my application closes. You don't have to use the Labels collection, unless you want to. I've also modded the code so scrolling doesn't draw every label when less than 20 labels are shown: public partial class Form1 : Form { //max visible labels ...
by Christopher
Mon Aug 12, 2019 8:56 am
Forum: .NET
Topic: FirstVisibleIndex and LastVisibleIndex while zooming
Replies: 18
Views: 666

Re: FirstVisibleIndex and LastVisibleIndex while zooming

How can I determine labelIndex inside DrawAxisLabel event? I've tried e.LabelValue - but it is always 0 in my case.. Well, you could check the incoming Text with the Labels collection you already have, e.g. public partial class Form1 : Form { //max visible labels private const Int32 maxDisplayedLab...