Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Option Explicit
Dim XWinkel As Long
Dim KColor As OLE_COLOR
Dim FColor As OLE_COLOR
Dim GStart As Long
Dim GCount As Long
Dim GStep As Long
Dim GUse As Boolean
Dim GWidth As Long
Dim UWidth As Boolean
Public Function MK()
On Error Resume Next
Dim convert As Double
Dim X As Long
Dim Y As Long
Dim Z As Long
Dim XHX, XCX, XPX
Dim Radi As Long
If UWidth = True Then
Radi = UserControl.Width / 2
Else
Radi = UserControl.Height / 2
End If
convert = 3.141593 / 180
UserControl.Cls
If GUse = True Then
UserControl.ForeColor = KColor
XHX = GWidth
For Z = GStart To GCount Step GStep
UserControl.Line (Radi - (Sin(-Z * convert) * (Radi - XHX)), Radi - (Sin((90 + Z) * convert) * (Radi - XHX)))-(Radi - (Sin(-Z * convert) * Radi), Radi - (Sin((90 + Z) * convert) * Radi))
Next
If UWidth = True Then
XHX = (UserControl.Width / 2) - XHX
Else
XHX = (UserControl.Height / 2) - XHX
End If
Else
If UWidth = True Then
XHX = (UserControl.Width / 2)
Else
XHX = (UserControl.Height / 2)
End If
End If
UserControl.ForeColor = FColor
Z = XWinkel
UserControl.Line (Radi, Radi)-(Radi - (Sin(-Z * convert) * XHX), Radi - (Sin((90 + Z) * convert) * XHX))
End Function
Public Property Get Value() As Long
On Error Resume Next
Value = XWinkel
End Property
Public Property Let Value(ByVal vNewValue As Long)
On Error Resume Next
XWinkel = vNewValue
MK
End Property
Public Property Get ForeColor() As OLE_COLOR
On Error Resume Next
ForeColor = FColor
End Property
Public Property Let ForeColor(ByVal vNewValue As OLE_COLOR)
On Error Resume Next
FColor = vNewValue
MK
End Property
Public Property Get BackColor() As OLE_COLOR
On Error Resume Next
BackColor = UserControl.BackColor
End Property
Public Property Let BackColor(ByVal vNewValue As OLE_COLOR)
On Error Resume Next
UserControl.BackColor = vNewValue
MK
End Property
Public Property Get KreisColor() As OLE_COLOR
On Error Resume Next
KreisColor = KColor
End Property
Public Property Let KreisColor(ByVal vNewValue As OLE_COLOR)
On Error Resume Next
KColor = vNewValue
MK
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
On Error Resume Next
UserControl.BackColor = PropBag.ReadProperty("BACKCOLOR")
FColor = PropBag.ReadProperty("FORECOLOR")
KColor = PropBag.ReadProperty("KREISCOLOR")
XWinkel = PropBag.ReadProperty("WINKEL")
GUse = PropBag.ReadProperty("GUSE")
GStart = PropBag.ReadProperty("GStart")
GStep = PropBag.ReadProperty("GStep")
GCount = PropBag.ReadProperty("GCount")
GWidth = PropBag.ReadProperty("GWidth")
UWidth = PropBag.ReadProperty("UWidth")
MK
End Sub
Private Sub UserControl_Resize()
On Error Resume Next
MK
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
On Error Resume Next
Call PropBag.WriteProperty("BACKCOLOR", UserControl.BackColor)
Call PropBag.WriteProperty("FORECOLOR", FColor)
Call PropBag.WriteProperty("KREISCOLOR", KColor)
Call PropBag.WriteProperty("WINKEL", XWinkel)
Call PropBag.WriteProperty("GUSE", GUse)
Call PropBag.WriteProperty("GStart", GStart)
Call PropBag.WriteProperty("GStep", GStep)
Call PropBag.WriteProperty("GCount", GCount)
Call PropBag.WriteProperty("GWidth", GWidth)
Call PropBag.WriteProperty("UWidth", UWidth)
End Sub
Public Property Get UseGraf() As Boolean
On Error Resume Next
UseGraf = GUse
End Property
Public Property Let UseGraf(ByVal vNewValue As Boolean)
On Error Resume Next
GUse = vNewValue
MK
End Property
Public Property Get GrafWertStart() As Long
On Error Resume Next
GrafWertStart = GStart
End Property
Public Property Let GrafWertStart(ByVal vNewValue As Long)
On Error Resume Next
GStart = vNewValue
MK
End Property
Public Property Get GrafWertCount() As Long
On Error Resume Next
GrafWertCount = GCount
End Property
Public Property Let GrafWertCount(ByVal vNewValue As Long)
On Error Resume Next
GCount = vNewValue
MK
End Property
Public Property Get GrafWertStep() As Long
On Error Resume Next
GrafWertStep = GStep
End Property
Public Property Let GrafWertStep(ByVal vNewValue As Long)
On Error Resume Next
GStep = vNewValue
MK
End Property
Public Property Get GrafWertWidth() As Long
On Error Resume Next
GrafWertWidth = GWidth
End Property
Public Property Let GrafWertWidth(ByVal vNewValue As Long)
On Error Resume Next
GWidth = vNewValue
MK
End Property
Public Property Get UseWhisWidth() As Boolean
On Error Resume Next
UseWhisWidth = UWidth
End Property
Public Property Let UseWhisWidth(ByVal vNewValue As Boolean)
On Error Resume Next
UWidth = vNewValue
MK
End Property