Search found 58 matches

by rperkins
Wed Dec 09, 2009 1:36 pm
Forum: VCL
Topic: Clearing Canvas items on T-Chart
Replies: 2
Views: 5948

Re: Clearing Canvas items on T-Chart

Hello Narcís,
Thanks for the reply.
It worked.

Randy
by rperkins
Mon Dec 07, 2009 5:57 pm
Forum: VCL
Topic: Clearing Canvas items on T-Chart
Replies: 2
Views: 5948

Clearing Canvas items on T-Chart

Hello There, I am using T-Chart version 707 for Builder 6. I am trying to hide the items I display on the T-Chart using the Canvas. For example, I am using TChart->Canvas->Line() function to draw a line on the chart and TChart->Canvas->TextOut() function to display some text on the chart. I am able ...
by rperkins
Mon Oct 13, 2008 2:46 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

based on the updated EXE (from today), i would expect what you're seeing - with an additional line or 2 along the top (which i haven't coded yet). also, if you look at the 98-100.2 & 100.00 chart, you'll see 2 points above 0,0 and below 0,max height. my updates now are to create horizontal lines fro...
by rperkins
Mon Oct 13, 2008 2:08 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

yes, with the update you originally posted. try the "new" exe in the zip file from today. you'll see a box in the 22-24, 23 plot, instead of the zagged line. remember, this is the profile of a ship, with the possibility of a "tunnel". also possible is a 2 segment ship (with parallel lines from the c...
by rperkins
Mon Oct 13, 2008 1:36 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

note: LD=Less Dense File, MD=More Dense File. no, when you run the application, you get a form. it's pre-set for LD=22, MD=24, and Distance=23.00. if you click on the LD button, pick the LD file that's at 100.22. click on the MD button and select the file thats at 98.12. enter 100.00 as the distance...
by rperkins
Mon Oct 13, 2008 12:51 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

we're getting much closer..... when i run the application with the update to the AfterDraw handler, and using the 98 & 100.2 pair & 100.00, i get the lines being drawn, as expected. running the application with the 22 & 24 pair & 23.00, i get the lines being drawn, but there are 2 that are associate...
by rperkins
Fri Oct 10, 2008 4:00 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

sorry about that. RzEdit.obj is a third party set of classes which add functionality to edits. the "Depth to Interpolate" is an RzNumericEdit. i did this because i wanted to force only numeric values in the field, and it was easier than trying to do all the OnChange handler events. either i can repl...
by rperkins
Fri Oct 10, 2008 2:40 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

uploaded a zip file with the source and test files - interp.zip. if you run the Interp.exe application, it's pre-loaded with a test case, but the paths will probably be different. click on the Less Dense File button and select either of the 2 less dense files in the Data Files directory. click on th...
by rperkins
Fri Oct 10, 2008 12:29 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

so far, i haven't been able to "produce" the lines.
by rperkins
Thu Oct 09, 2008 4:33 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

i added a chart->Draw() after the AddXY's, which resulted in values now being available from the CalcXPos and CalcYPos. they appear to be correct (x=0 --> 41, Y=#1 --> 206, Y=#2 --> 360. i would have figured that now having values for the Line and/or MoveTo/LineTo calls would have produced the lines.
by rperkins
Thu Oct 09, 2008 2:04 pm
Forum: VCL
Topic: Left Axis Title and Label separation
Replies: 12
Views: 22155

based on the information in the previous post, i created a BeforeDrawChart handler (tried in the AfterDraw, but it was 1 refresh behind). the code below results in the appropriate "cushion" between the Axis Title and the Labels. not: in my example, the chart is called crtData. void __fastcall TfrmCh...
by rperkins
Wed Oct 08, 2008 12:22 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

that is the exact algorithm i was planning on implementing today. thanks for confirming the approach. :) :) tried to implement the "solution", but haven't seen any lines being drawn, yet. also, tried to find the Tutorials, but was unable. below is a function that was written to add 2 points to a ser...
by rperkins
Tue Oct 07, 2008 4:21 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

the problem i'm facing is that as i'm "walking around the hull of the ship", there are some cases where i simply can't go "up" to the next point, i have to go back to the centerline. that's where the example of the Q-tip comes in to play. the algorithm i have says that as you're walking CCW from 0,0...
by rperkins
Tue Oct 07, 2008 3:10 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

will take at look at the example info on the Perimeter function. given that i have a bunch of points, i have a function that determines which 2 points should have a line between them (a segment of the ship hull). with these 2 points, i was hoping to be able to "plot" them on a chart and have a line ...
by rperkins
Tue Oct 07, 2008 12:54 pm
Forum: VCL
Topic: Drawing a line between points
Replies: 23
Views: 35190

i had thought about setting the series up as a line series. in my test app, i changed the series from a point series to a line, and was able to see the lines between the points. problem is that i don't have consecutive points, nor do i have the ability to order them. what i'm looking to do is take a...