Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Me.Circle Method Border Thickness 1

Status
Not open for further replies.

bajo71

Programmer
Aug 6, 2007
135
US
Hello,

Using VBA to draw a circle, I am trying to make the circle thicker, 1pt width. Right now it draws a hairline thickness and the printer I have spots out in certain places.

Here's a portion of the code ...I tried something like
Me.BorderWidth = 1, but does not work.

Dim ctl As Control
Dim lngCX As Long
Dim lngCY As Long
Dim lngRad As Long
Dim tmpLbl As String, tmpLblO As String

For Each ctl In Detail.Controls
If ctl.ControlType = acOptionButton And Right(ctl.Parent.Name, 4) <> "Mask" Then 'Option Button = 105
lngCX = ctl.Left + ctl.Width / 3
lngCY = ctl.Top + ctl.Height / 3
lngRad = ctl.Width / 3
' draw outer circle
Me.FillStyle = 1 ' 1 = transparent
Me.Circle (lngCX, lngCY), lngRad
' fill inner circle
Me.FillStyle = 0 ' 0 = opaque
If ctl.Parent = True And ctl.OptionValue = -1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top