home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,773 of 10,840   
   The Mess to The Mess   
   Re: Line Method Function   
   04 Dec 05 20:59:06   
   
   From: email@none.com   
      
   Thanks very much, Steve. That should get me in the right direction! Thought   
   it would be more complicated than that.   
      
      
   "The Mess"  wrote in message   
   news:laFkf.210$kt5.38944@news20.bellglobal.com...   
   >I am using VB5.   
   > I wish I had a function to draw a line, giving the angle and length but I   
   > do not have the math skills involved to do this. Does anyone have a   
   > function that they care to share that does this?   
   > I was thinking something like:   
   > Public Sub DrawLine(X1 as single, Y1 as single, Len as single, Angle as   
   > single, byref  X2 as single, byref  Y2 as single)   
   > and have X2 and Y2 assigned in the Sub (rather than just a line drawn -   
   > because I would like to do a little more processing first.   
   >   
   > The purpose of this is that I have a Square (drawn with the line method)   
   > that is cut in half diagonally (line method) and I would like half of it   
   > (a triangle) shaded in with hash mark lines (user selective in what the   
   > angle of these marks might be.)   
   > Any help would be appreciated. I tried some searches and get lots of math   
   > lessons but I would have a lot to learn to accomplish this. Or maybe there   
   > is a better way?   
   > Thanks.   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca