Segments



Hi all.

Within as form I have a sub that draws segments that go to make a pie chart,
The sub has these args:
R As RECT
StartPercent As Single
EndPercent As Single
TheColour As Long
TheHDC As Long

So- if I had the code:
DrawSegment R, 25, 58, vbRed, Me.Hdc - then a red one third segment would be
drawn on the form.
All works well.

Question 1:
How can I find out the X & Y (in pixels) of the two points of the segment on
the diameter of the circle.
Question 2:
I would like to have a tooltip that says what the sement is representing
when the mouse is over the segment. But how would I know when the mouse
cursor is over the segment.

Any ideas would be appreciated.

Thanks

Ivar


.



Relevant Pages

  • Reading UDTs out of a byte array (CopyMemory vs Get on a disk file)
    ... contiguously on disk and then some number of 64 byte "segment records" ... Public Sub LoadBuffer ... Dim hFile As Integer ... Get #hfile calls on the file to fill in my UDTs. ...
    (microsoft.public.vb.winapi)
  • RE: Formula in given via input box
    ... Dim segment As String ... Dim formula As String ... End Sub ...
    (microsoft.public.excel.programming)
  • Re: Using SS for non-stack operations?
    ... Jim Leonard wrote: ... > But that *is* my current environment (see earlier messages in the ... A simple SUB SP,buf_size is always safe (given that you have enough ... or should I be setting it to my own segment? ...
    (comp.lang.asm.x86)
  • Re: playing & re-playing 7 .wav files
    ... i will try to use background worker for putting ... I thought I should use this segment of code to get this thing done: ... Private Sub cmdStart_Click(ByVal sender As System.Object, ... Dim i As Integer = 1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Segments
    ... Within as form I have a sub that draws segments that go to make a pie chart, ... How can I find out the X & Y of the two points of the segment on the diameter of the circle. ...
    (comp.lang.basic.visual.misc)