Re: drawing Lines



Bill,

Well thanks for the reply, slight problem, it's such a long time since I did any programming I'm going to need a little more leading by the hand (by examples).

It's quite a while since I did any programming in fact been retired for some time and the brain does not work as well as it did!

So any additional help much appreciated for an old dodderer.

THE OVERALL PLOT
My, self instigated, project is that I have bought a weather station but I'm not impressed with the software that came with it. I'm hoping to write software which will give me more graphic information.
Information is sent via radio to a console, this console can be connected to the computer via a USB cable. This will give me possibly another option, to read data from a file created by the existing software or if I can get enough brain cells together (and help on the web ) to actually poll the device (console not using the radio comms).

Probably bitten off more that I can chew, but though it a good project to activate the mind again.

Regards

In message <EA1A8717-7750-48DF-ACDC-825F98B5BDC0@xxxxxxxxxxxxx>, Bill McCarthy <Bill@xxxxxxxxxx> writes
This is pretty simple really. Use a Line control. Determine the center of the circle and it's radius, then determine the dx and dy, by using Cos and Sin respectively, and multiply that by the radius. The line's start is the xCenter -dx, yCenter - dy, and the end points as xCenter + dx and yCenter + dy



"Kevin J Prince" <kevin@xxxxxxxxxxxxxxxxxx> wrote in message news:ZmSGlTAPDRRIFATM@xxxxxxxxxxxxxxxxxxxxx
Hi,
Is the following possible and if so how?

I have a form, with a frame, in that frame is a shape(circle).

I want to know if I can draw lines in that circle at any one of the 360 degrees for a specific length.

I hope to get date in and plot a line from the centre of the circle to the outer rim (max) at a specific angle. If the date get larger than that distance (centre to outer) I will need to work out a formulae which redraws all data at 75% of the original size.

Hope that makes sense???

Or is there already a subroutine somewhere to do just that?

|Regards

-- I live in my own little world,
But it's OK, they know me here....

++ Kevin J Prince ++


--
I live in my own little world,
But it's OK, they know me here....

++ Kevin J Prince ++
.



Relevant Pages

  • Re: Selecting an HDTV
    ... | As you all know good TVs have means ... | linear - circle in the center is round, circles at right and left will be ... I see little advantage to HDTV programming - do ... they do not look like what they did in the store. ...
    (alt.tv.tech.hdtv)
  • Re: Windows graphics problem
    ... i have problems with an example from my textbook on windows console ... asm movb ah, 0x2 ... MSDOS console programming. ...
    (comp.lang.c)
  • Re: Aaaaarghhh!!! Drawing a circle?
    ... need to understand it to move forward programming. ... You need to create a project, drop on a Form, the override that Form's ... create a brush and draw a circle. ... small crosshair to move .01mm in the corrosponding direction. ...
    (microsoft.public.pocketpc.developer)
  • Re: Console Applications
    ... application runs out of code to execute and there for terminates. ... This makes your console application pause just ... > I'm a complete newbie at programming. ... because I want to build Windows apps and not console apps right now? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Assembly Console Programming in Windows
    ... > Assembly Console Programming in Windows... ... > console apps. ... environment, offering tons of stuff (Assembler, Source ... System, Resources Editors, specific Sources Editor, and ...
    (comp.lang.asm.x86)