Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tick Ruler to Match Series Elements in MSChart
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01185238
Message ID:
01185380
Views:
10
>Terry,
>
>Tick Ruler, Match Series and Elements MSChart. Strange company you're keeping those days < gd&rvvf >

I should have said "series datapoint ruler".

The "rule" would show a weekly scale for a single series graph. Each weekly scale wll contain 5 datapoints (one for each business day). The dates would would show for each "first" monday of everymonth (the project present moving averages and statisical interpolations of raw data and moving averages).

In MSChart, there is a function called TwipsToChartPart. The ruler has been solved. But the TwipsToChartPart is killing me. My expectation was that it would behave as "Hittest" does in Treeview or Listview), and that a mousemove "across" a series datapoint would fire and return a value, a NULL or an (Object).

The VB "blogs" indicate some are having success - the TwipsToChartPart (TTCP) function reads as:
TwipsToChartPart(x, y, iPart, iIndex1, iIndex2, iIndex3, iIndex4)

The VB guys seem to be saying that VB returns the value of iPart, a ChartPartType (series, datapoing, axis, etc). Inside VFP 9, TTCP fires without error for the literal values:
TwipsToChartPart( nX,nY,.f.,.f.,.f.,.f.)

When the pointer moves over a data point - the value is echoed to the form caption:
.caption=transform(TwipsToChartPart(x, y, iPart, iIndex1, iIndex2, iIndex3, iIndex4)
It's always null. Even hard setting the part to the "datapoint" constant (7), returns a null.

I have not figured out a way to determine what methods an OCX "really" exposes to VFP - and again - no one has done this to either report a failure or success using VFP.

I emailed Hisa's Blog - maybe he can give me a more definate answer. Maybe an API wrapper could solve it - dunno.

As far as "who I hang with" - No one - I am as isolated as a software developer can get - I NEED A REST!!! I am too much a "dork" (perhaps) - too many weird mind burner projects where most of my time was spent partnering with search bots - researching technical issues - or rules issues. Too much time building DHTML toolbars, listviews and treeviews from inside VFP - convert them to XML strings - developing services to publish those strings to some backend notes field - so that some browser Client can innerHTML `em and feel like it's using real desktop controls! It's a man eater!

Hopefully not many! It's like those that buy my time seem to know I will waste myself until the problem is solved. How'd they ever get that idea?

I even land on French and German sites (I think "code" is a universal language) - and those guys really get into the bullocks of those controls - a lot more that we do on this side of the pond. I have hit Japanese and Korean sites too - I love it when they offer translated PDFs!

I am isolated - searching for relief - any suggestions would be helpful!

If you know, my dear Sergey, where I can go to figure out how to fire the TwipsToChartPart inside VFP 9 - even if it requires an API - TELL ME!

Or - tell me where the easy bucks are for cascading grid form projects (NET or VFP - it does't matter at that level) - I am ready for it!
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform