forked from alexrestrepo/RBCustomTabPanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdummyControl.rbfrm
79 lines (71 loc) · 1.84 KB
/
dummyControl.rbfrm
1
#tag WindowBegin ContainerControl dummyControl AcceptFocus = "" AcceptTabs = "" AutoDeactivate = True Enabled = True EraseBackground = True Height = 300 HelpTag = "" InitialParent = "" Left = 0 LockBottom = True LockLeft = True LockRight = True LockTop = True TabIndex = 0 TabPanelIndex = 0 TabStop = True Top = 0 UseFocusRing = "" Visible = True Width = 300 Begin Canvas Canvas1 AcceptFocus = "" AcceptTabs = "" AutoDeactivate = True Backdrop = "" Enabled = True EraseBackground = True Height = 300 HelpTag = "" Index = -2147483648 InitialParent = "" Left = 0 LockBottom = True LockedInPosition= False LockLeft = True LockRight = True LockTop = True Scope = 0 TabIndex = 0 TabPanelIndex = 0 TabStop = True Top = 0 UseFocusRing = True Visible = True Width = 300 EndEnd#tag EndWindow#tag WindowCode #tag Method, Flags = &h0 Sub Constructor(caption as string) self.caption=caption End Sub #tag EndMethod #tag Property, Flags = &h21 Private caption As string #tag EndProperty#tag EndWindowCode#tag Events Canvas1 #tag Event Sub Paint(g As Graphics) g.TextSize=24 g.Bold=true g.DrawString caption, (g.Width-g.StringWidth(caption))/2, (g.Height+g.TextAscent)/2 g.ForeColor=&c888888 g.DrawRect 0,0,g.Width,g.Height End Sub #tag EndEvent#tag EndEvents