home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
MS_DEV
/
VBCCE
/
SAMPLES
/
Flexlbl
/
FlexLbl.EXE
/
RCDATA
/
CABINET
/
Frmtest.frm
< prev
next >
Wrap
Text File
|
1996-10-25
|
3KB
|
118 lines
VERSION 5.00
Object = "*\AFlexLbl.vbp"
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "comctl32.ocx"
Begin VB.Form frmTest
Caption = "FlexLabel Test"
ClientHeight = 5496
ClientLeft = 1680
ClientTop = 2832
ClientWidth = 6588
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 458
ScaleMode = 3 'Pixel
ScaleWidth = 549
Begin VB.Frame Frame1
Caption = "Settings"
Height = 1755
Left = 0
TabIndex = 1
Top = 3720
Width = 5055
Begin VB.TextBox Text1
Height = 330
Left = 120
TabIndex = 3
Text = "Caption"
Top = 480
Width = 3855
End
Begin VB.CommandButton Command1
Caption = "Apply"
Default = -1 'True
Height = 330
Left = 4020
TabIndex = 2
Top = 480
Width = 855
End
Begin ComctlLib.Slider SliderV
Height = 480
Left = 60
TabIndex = 4
Top = 1140
Width = 4935
_ExtentX = 8700
_ExtentY = 847
LargeChange = 60
SmallChange = 20
Min = 1
Max = 1024
SelStart = 1
TickFrequency = 20
Value = 1
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Width:"
Height = 195
Index = 1
Left = 120
TabIndex = 5
Top = 900
Width = 465
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Caption:"
Height = 195
Index = 0
Left = 120
TabIndex = 6
Top = 240
Width = 585
End
End
Begin FlexLabelControl.FlexLabel FlexLabel1
Height = 1212
Left = 0
TabIndex = 0
Top = 0
Width = 4044
_ExtentX = 7133
_ExtentY = 2138
End
End
Attribute VB_Name = "frmTest"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
FlexLabel1.Caption = Text1.Text
FlexLabel1.ToolTipText = Text1.Text
End Sub
Private Sub Form_Load()
Text1.Text = FlexLabel1.Caption
SliderV.Value = FlexLabel1.Height
Me.Caption = "FlexLabel Test - FlexLabel.Height = " & Trim$(SliderV.Value)
End Sub
Private Sub Form_Resize()
With Frame1
.Top = frmTest.ScaleHeight - .Height
End With
End Sub
Private Sub SliderV_Click()
With Me
.MousePointer = vbHourglass
.Caption = "FlexLabel Test - FlexLabel.Height = " & Trim$(SliderV.Value)
FlexLabel1.Height = SliderV.Value
.MousePointer = vbDefault
End With
End Sub