|
Custom Frame:

Category:
GUI
API:
SendMessage |
ReleaseCapture |
RoundRect
Very useful frame, movable, sizable with size-off limit, caption and caption
shadow, frame border and caption border…

Events:
OnBeforeSize(NewWidth As
Single, NewHeight
As Single, CancelWidth
As Boolean, CancelHeight
As Boolean)
This event is fired before the size change at runtime. It allows you to prevent
the resizing of the width or the height.
To prevent the resizing you need to set CancelWidth or CancelHeight to True.
For example, the following code creates a minimum limit for the width and height
of a frame:
Private Sub vbkFrame1_OnBeforeSize(NewWidth
As Single, NewHeight As
Single, CancelWidth As Boolean,
CancelHeight As Boolean)
CancelWidth = NewWidth <= 3585
CancelHeight = NewHeight <= 2070
End Sub
Properties:
BackColor As Long:
Returns/Sets the frame's backcolor
Border As Boolean:
Returns/Sets whether the frame's border is visible or not
Caption As String:
Returns/Sets the text of the frame's caption
CaptionBorder As Boolean:
Returns/Sets whether the caption's border is visible or not
ForeColor As Long:
Returns/set the foreground color of the frame's caption
Movable As Boolean:
Returns/sets whether the user can move the frame at runtime mode.
ShadowColor As Long:
Returns/set the shadow's color.
ShadowOffset As Integer:
Returns/set the shadow depth.
Sizable As Boolean:
Returns/sets whether the user can size the frame at runtime mode.
|