activex,teechart , Want to set label value on TeeChart InnerTick VC++

Want to set label value on TeeChart InnerTick VC++


Tag: activex,teechart

I wanted to set label text value on TeeChart InnerTick using VC++. like we have below example (I wanted to set AAAA,BBBB,CCCC,DDDD values).

// Sorry i was not able to attach image.

Below mention chart we have created using CGraph. to get co-ordinates we are using SDKInfo property. i wanted to know that how can we get all these x axis,y axis values using TeeChart. Is there any API to get these co ordinates ?

1 X axis max (your data units)

2 X axis min (your data units)

3 Y axis max (your data units)

4 Y axis min (your data units)

5 X axis length (Graphics Server view units)

6 Y axis length (Graphics Server view units)

7 X origin (Graphics Server view units)

8 Y origin (Graphics Server view units)

9 Label font size (percentage of system font)

| | | AAAA BBBB CCC DDDD |__________|____________________|___________________|__________________|________ | | | | 111 222 333 444



I'm not sure about what exact TeeChart version are you using so this answer may be a bit vague.

All binary installations of TeeChart come with a program we call "Features Demo". This program includes examples showing how to use the majority of features supported.
One of the examples is the "Custom Labels", you should find it under "All Features\Welcome !\Axes\Labels\Custom Labels" in the program.

Also, to convert axis values to screen pixels, all TeeChart versions provide "Calc*" functions for it. Ie, to convert the value 10 in the bottom axis to pixels, in TeeChart ActiveX:

XPix = tChart1.Axis.Bottom.CalcXPosValue(10);

Just note these functions need the chart to be drawn once so the internal properties have been initialized and the calculations can be correctly done.


Error 438 when populating VBA ActiveX combobox only on some computers

I have created a Workbook with ActiveX Combo Box controls that populate through worksheet_activate() code: Private Sub Worksheet_Activate() With ActiveSheet.cmboBox1 .Clear .AddItem "Item 1" .AddItem "Item 2" .AddItem "etc..." .Text = "Select... " .Width = 222 .Height = 19 .Left = 0 .Top = 0 End With End Sub This...

Open .eml file in Outlook 2010 using ActiveX

I am working on a document management intranet application. Files will be on a shared network drive; users will click on a link and that file will open in its native application (Outlook, Word, Excel, etc.). I have all of the Office files opening using ActiveX except for eml. When...

Storing reference to object in TeeChart

I'm using TeeChart with Delphi XE5 and utilizing the BubbleSeries component to show X/Y/Radius bubbles in a chart. I'm building the chart using an list of objects that I have, calculating X/Y/Radius values for these objects on the fly and inserting them using the TBubbleSeries.AddBubble method. The problem is when...

Teechart HTML5, line color and thickness

How do you change the line color and thickness of a series in Teechart HTML5. I have been looking through the examples, but i can't find anything describing that....

TChart : Get mark style with series title together with its value

I have bar series in which I want to set the marks style that contains both the series title and the actual value of the bar. Here's my code : procedure TFRDept.PopulateDeptChart; var Loop ,YearIndex: integer; DeptKey: String; StartBar, TotalBar, EndBar : TBarSeries; begin for Loop := 0 to FDeptList.Count...

How to draw ColorLine in TeeChart with DASH style?

I'm triyng to add a ColorLine Tool to my TeeChart on Android (Java version). Everything works fine except I can't make the line to be drawn with DASH style. Here's my code snippet: ColorLine closeLabelLine = new ColorLine(chart.getChart()); closeLabelLine.setValue(closeValue); closeLabelLine.setAxis(chart.getAxes().getRight()); closeLabelLine.getPen().setStyle(DashStyle.DASH); //Seems like no effect! closeLabelLine.getPen().setColor(CLOSE_LABEL_COLOR); What am I doing...

How to set Android TeeChart Border Color

I use Steema TeeChart JAVA for Android to create a Chart. With the following code i tried to change the color of the charts border, but it effects nothing. public void setBorderColor(Color borderColor){ tChart.getWalls().getRight().setColor(borderColor); tChart.getWalls().getLeft().setColor(borderColor); tChart.getWalls().getBottom().setColor(borderColor); tChart.getWalls().getBack().setColor(borderColor); } ...

TChart : The check/unchecked event not working in ExtraLegendTool

I displayed an ExtraLegendTool with checkboxes but the checkbox event is not working. Here is the code to display the ExtraLegend: procedure TFRChart.TCChartAfterDraw(Sender: TObject); begin if CKDisplay.Checked then begin with ExtraLegend do begin Active:= True; Series := TBarSeries(Self.FindComponent('SeriesTotal')); with Legend do begin LegendStyle := lsAuto; CheckBoxes := True; //MaxNumRows :=...

TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android

TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android and it gets worse the with density. the "funny" thing is that it is the "displacement" or "depth" from the 3D model that i cant get rid off. the same code on the iphone has no problems....

Webbrowser Active X custom dynamic MIME handler pdf

I am using Microsoft's Web Browser ActiveX control in an MFC application. I want to be able to change the default MIME handler for PDF. It appears to me that web browser control must use the registry based file type association HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/pdf I want to be able to...

ActiveX script to c# - Right function in C#

I want to replace below code into c#. We can replace recordset("KEY_NAME_VALUE") to ds.Tables[0].Rows[0]["KEY_NAME_VALUE"].ToString(), dataset value Right("00" & Recordset("KEY_NAME_VALUE") + 1, 3)

Canvas.textout doesn´t show text after a new series is made visible

So what i'm doing is display the x and y values of the mouse pointer on a teechart chart using the following code, inside the onmousemove event: oscilografia.Repaint; if ((x>236) and (x<927)) and ((y>42) and (y<424)) then begin oscilografia.Canvas.Brush.Style := bsSolid; oscilografia.Canvas.Pen.Color := clBlack; oscilografia.Canvas.Brush.Color := clWhite; oscilografia.Canvas.TextOut(x+10,y,datetimetostr(oscilografia.Series[0].XScreenToValue(x))+','+FormatFloat('#0.00',oscilografia.series[0].YScreenToValue(y)));...

Change ActiveX email font

Would anyone know how to change the font in an email generated by new ActiveXObject("Outlook.Application")? This seems to default to Times New Roman regardless of the default settings in the mail client. Thanks...

C# Vlc ActiveX Play rtsp stream

I have found a problem to embed and playing rtsp stream to VLC activex control. Once i already succeeded but now i cant i dont know why, Im trying to host at WPF a vlc control but its dont work , Its says like a dll is missing , "Failed...

Check filesize before uploading to file system

Just a quick question, I have done a lot of research on this already but I have a different approach. My problem: I have a file uploader that works in all browsers using with VB. The issue is that our system only allows files to be uploaded that are...

What circumstances other than “await” will allow synchronous code to be interrupted

I recently came across a strange bug in my async code. I was calling a blocking method on a COM control, which appeared to allow my async continuations to run while it was blocking. Consider example code (illustrative purposes only) public async void Main() { //assume some single threaded dispatcher....

“exception: access violation writing” error in Python (ctypes)

I've been learning python (2.7) for a couple of weeks to be able to automatise autocad, so, be patient I'm python noob. I'm trying to get the attributes of a newely created block to modify them, the doc says that in VBA it would be: Set blockRefObj = ThisDrawing.ModelSpace.InsertBlock(insertionPnt, "TESTBLOCK",...

change single point color in teechart

i'm using teechart in java.I want to change some points color in a series,not all of the points.If the point's value is over a specific value,then turn the point into red. i just know how to change all the point's color,and here is my code. xline.getPointer().setVisible(true); // 数据点突出显示 // xline.getPointer().setStyle(PointerStyle.CIRCLE);...

CoCreateInstance of OLE control failed

I inherited a visual studio 6 project that uses Thorlab activex controls. The project used to run on windows XP a couple of years ago and I have managed to import it and build it in VS2012. The problem is, when I try to run the exe file, I get...

How can I simulate events like Series1DblClick or Chart1ClickSeries when programatically creating Charts and Series on the runtime?

In a small Delphi program I create few TCharts and TBarSeries programmatically on the runtime but then I want to be able to click on a bar of the chart and fire, for example, a Chart1ClickSeries event to display information of that bar. Is that possible??

How to add values to an exisiting TPieSeries via Delphi Xe7

As the title suggest, how can I add a value to an already existing pie slice in a TPieseries within the TChart component. delphi XE7 for iOS FMX...

TeeChart bottom axis labels are cut off in iOS

I'm building an iOS app (unified) using Xamarin. I'm also using TeeCharts. I have a very simple bar chart whose bottom axis labels are rotated by 90 degrees (vertical labels). The bottom axis shows dates (10 days, starting from today). I've also set the date format to "MM/dd". Here's my...

Sign PDF with smartcard in web context using CAPICOM & iTextSharp

Read through the following references: iText Digital signature white paper, and C# examples. (specifically chapter 4) For those interested, another great and concise summary of the PDF signing process. CAPICOM documentation. Online examples / questions here and on iText mailing list archives, such as here and here. Hashing code: BouncyCastle.X509Certificate[]...

ActiveX textbox value looping

I'm trying to perform a loop on several activeX textboxes named q1, q2, q3 ... q11. Here's what I tried, but it didn't work: For i = 1 To 11 myValue(i) = ActiveDocument.q & i.Value Next I also tried "q" & i, (q & i), ("q" & i), etc, but...

TeeChart: Adding candles to chart without specifying their time

I'm looking for a way to add data to OHLC series without specifying date values of the point. So let's assume that I have a List<Candle> where Candle object contain values for high, low, open and close, but not the date. I'd like to add values to series in such...

Triggering VBA code using Form Control Check Box instead of ActiveX

I have the code below working in a budget template for work. However, before I roll this out to all the users, I need to make it Mac friendly. Since Macs don't like ActiveX Controls, I'm trying to figure out a way to make this code work using form controls....

Controlling axis labels position in TeeChart

I have an issue with displaying axis labels for a bottom axis in TeeChart. Axis labels in my case are rather long and represent dates in format dd.MM.yyyy In some cases when labels are placed close to each other they're shown one on top of each other (overlapping occurs). I...

Teechart :How to move a visible series mark by code?

In a TLineSeries called serie1 with parent chart cht1, where I have visible marks, I'm trying to move one mark by code. My problem is that when I try to set mark position's Custom property to true, I get an "access violation" exception. But, if I drag the mark (with...

Unable to open file XML.XMLINTF.OBJ

I developed all my code at C++ Builder XE with TeeChart 2011. So, now I want to migrate to C++ Builder XE7 with TeeChart 2015. When I try to compile my code, the message error is presented: [ilink32 Error] Fatal: Unable to open file 'XML.XMLINTF.OBJ' I don't use any XML...

ActiveX TextBox_Change with ListBox_Click then clear TextBox causes recursive behavior

I have an ActiveX TextBox with TextBox_Click code behind it such that each character I type triggers another sub to execute which then updates a table by updating a named cell that as a formula in it which drives the table. Then I have a ListBox that has ListFillRange linked...

Error when TChart is docked

I get an AV when I dock a Form, wich contains a TChart, into another Form. The error does not occure when the Autoaint property of the TChart is set to True. I have tested this with C++Builder XE6, XE7 and Delphi Builder XE6 with the standard version of TeeChart....

OnGetLegendTextTchart event is not getting fired

I want to update the text and symbol on legend items. I am creating legend text with symbol using series and CSeriesPointerItems. I thought of using OnGetLegendTextTchart event, but it is not getting fired. OnAfterDrawTchart event is getting fired. So I am unable to understanding why is it not happening?...

ActiveX dll not working on IIS 8.5

ActiveX dll not working on IIS 8.5 We have a classic ASP application that uses and ActiveX dll to generate an image on the fly. It was working find on Window 2003 with IIS6. But we're migrating it to Windows 2012 and IIS 8.5. The DLL is registered on the...

Is there a way to export a TeeChart to PDF?

I've created a TeeChart in RAD Studio XE8 C++ Builder. I know you can use Print or PrintPartial to output to a printer. I'm wondering if there's a way to output this TeeChart to a PDF? edit: This feature is included in the "pro" version. For now, I'm using the...

Udp Server on ActiveX Form

When I use TIdUDPServer on ActiveXForm, OnUDPRead event of the Udp Server does not trigger. If I check IdUDPServer.Active status, it's "true". But why OnUDPRead never triggered?

TeeChart ScrollPager realtime update

I'm trying to update main chart series data dynamically, but ScrollPager freezes my chart's frame if I move ColorBand or if I do updating of the chart while it's already repainting with a lot of ArrayOutOfIndex exceptions. I understend why it happens, but don't know how to use it right...

Custom datetime step on teechart

I'm making a software where i plot samples measured from an electric circuit on a teechart chart. The user needs to be able to select the time window of the samples on the screen. For example, the chart has 10 fixed divisons on the screen, and each of these divisions...

ActiveXObject run does not return (shell)

I am running a shell script from a JavaScript environment using ActiveXObject. Everything works just fine if I do not include any parameters in the run function: var x = new ActiveXObject("WScript.Shell"); x.Run("%comspec% /K dir") alert("I am here!") According to the documentation, "The Run method also accepts a Boolean value...

Reset Marks in Line Series Teechart

I have added Marks in Line series, But when we are adding marks in same x-axis then it is showing both marks previously added and new one also. i wanted to show only last one. m_ctrlChart.AddSeries(scLine); m_ctrlChart.Series(0).AddNullXY(0, 5, ""); m_ctrlChart.Series(0).AddXY(22, 5, "C", 0); // Here we have added 'C' on...

Sometimes the ActiveX Combobox only shows one row, why?

It seems that when I first click on the combobox and then click on the arrow, all items are displayed. While if I click on the arrow without clicking on the combobox before, only one item is displayed and I can click on scroll buttons to see the other items....

How to add items into Listbox using ActiveX params?

I am new with ActiveX. I am trying to add some items into a Listbox using HTML params: <object classid="clsid:B8F86405-G7YB-4BDF-AD70-55B265068G44" codebase="project.ocx" width="600" height="500"> <param name="item" value="item1"> <param name="item1 id " value="1"> </object> I don't know yet how to do it inside Delphi to read those HTML values. I think I...

Want to set label value on TeeChart InnerTick VC++

I wanted to set label text value on TeeChart InnerTick using VC++. like we have below example (I wanted to set AAAA,BBBB,CCCC,DDDD values). // Sorry i was not able to attach image. Below mention chart we have created using CGraph. to get co-ordinates we are using SDKInfo property. i wanted...

Invoke marshalled COM interface multiple times

I am writing a COM object for JavaScript consumption. JavaScript code is turn runs in an hosted WebBrowserControl. I need to fire some events from COM object to JavaScript, the excellent guide to which at Dr. Dobbs e.g. I have following in my *.idl IJSCallback { void Listen(IDispatch* pJSMethod); }...