home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form mhgroup
- Caption = "Mh3dGroup Sample program"
- ClientHeight = 5235
- ClientLeft = 1290
- ClientTop = 1530
- ClientWidth = 6045
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 5640
- Left = 1230
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 5235
- ScaleWidth = 6045
- Top = 1185
- Width = 6165
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 360
- ScaleHeight = 225
- ScaleWidth = 465
- TabIndex = 10
- Top = 7080
- Visible = 0 'False
- Width = 495
- End
- Begin VB.CommandButton Command2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Ok"
- Height = 375
- Left = 4800
- TabIndex = 14
- Top = 4680
- Width = 855
- End
- Begin VB.Frame Frame4
- Caption = "Assign Groups"
- Height = 1815
- Left = 2520
- TabIndex = 23
- Top = 3240
- Width = 1935
- Begin VB.Label Label4
- Alignment = 2 'Center
- Appearance = 0 'Flat
- BackColor = &H00808080&
- Caption = "2"
- DragIcon = "mh3dgrp.frx":0000
- ForeColor = &H80000008&
- Height = 255
- Index = 2
- Left = 1320
- TabIndex = 28
- Top = 1320
- Width = 495
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Appearance = 0 'Flat
- BackColor = &H00808080&
- Caption = "1"
- DragIcon = "mh3dgrp.frx":030A
- ForeColor = &H80000008&
- Height = 255
- Index = 1
- Left = 720
- TabIndex = 27
- Top = 1320
- Width = 495
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Appearance = 0 'Flat
- BackColor = &H00808080&
- Caption = "0"
- DragIcon = "mh3dgrp.frx":0614
- ForeColor = &H80000008&
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 26
- Top = 1320
- Width = 495
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Click and hold mouse on group # and drag to button to assign group."
- Height = 855
- Left = 120
- TabIndex = 25
- Top = 360
- Width = 1695
- End
- End
- Begin VB.Frame Frame3
- Caption = "Border Styles"
- Height = 1815
- Left = 240
- TabIndex = 11
- Top = 3240
- Width = 1815
- Begin VB.HScrollBar HScroll1
- Height = 255
- LargeChange = 2
- Left = 120
- Max = 10
- TabIndex = 12
- Top = 1320
- Value = 2
- Width = 1095
- End
- Begin VB.CheckBox Check2
- Caption = "Border"
- Height = 375
- Left = 120
- TabIndex = 29
- Top = 360
- Value = 1 'Checked
- Width = 1215
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "2"
- ForeColor = &H80000008&
- Height = 255
- Left = 1320
- TabIndex = 13
- Top = 1320
- Width = 375
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- Caption = "Bevel Size"
- Height = 255
- Left = 120
- TabIndex = 30
- Top = 960
- Width = 1455
- End
- End
- Begin VB.Frame Frame2
- Caption = "Color"
- Height = 1935
- Left = 2520
- TabIndex = 5
- Top = 1200
- Width = 1935
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "ShadowColor"
- Height = 375
- Index = 3
- Left = 240
- TabIndex = 9
- Top = 1440
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "LightColor"
- Height = 375
- Index = 2
- Left = 240
- TabIndex = 8
- Top = 1080
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "FillColor"
- Height = 375
- Index = 1
- Left = 240
- TabIndex = 7
- Top = 720
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "TextColor"
- Height = 375
- Index = 0
- Left = 240
- TabIndex = 6
- Top = 360
- Width = 1455
- End
- End
- Begin VB.Frame Frame1
- Caption = "Alignment"
- Height = 1935
- Left = 240
- TabIndex = 0
- Top = 1200
- Width = 1815
- Begin VB.CheckBox Check1
- Caption = "MultiLine"
- Height = 375
- Left = 120
- TabIndex = 4
- Top = 1440
- Width = 1335
- End
- Begin VB.OptionButton Option1
- Caption = "Center"
- Height = 255
- Index = 2
- Left = 120
- TabIndex = 3
- Top = 1080
- Value = -1 'True
- Width = 975
- End
- Begin VB.OptionButton Option1
- Caption = "Right"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 2
- Top = 720
- Width = 975
- End
- Begin VB.OptionButton Option1
- Caption = "Left"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 1
- Top = 360
- Width = 855
- End
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 7
- Left = 4560
- TabIndex = 22
- Top = 4080
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 2"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 2
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 6
- Left = 4560
- TabIndex = 21
- Top = 3600
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 2"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 2
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 5
- Left = 4560
- TabIndex = 20
- Top = 3120
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 1"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 1
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 4
- Left = 4560
- TabIndex = 19
- Top = 2640
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 1"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 1
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 3
- Left = 4560
- TabIndex = 18
- Top = 2160
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 1"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 1
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 2
- Left = 4560
- TabIndex = 17
- Top = 1680
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 0"
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- PictureDown = "mh3dgrp.frx":091E
- PicturePressed = "mh3dgrp.frx":093A
- PictureUp = "mh3dgrp.frx":0956
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 0
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 1
- Left = 4560
- TabIndex = 16
- Top = 1200
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 0"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- PictureDown = "mh3dgrp.frx":0972
- PicturePressed = "mh3dgrp.frx":098E
- PictureUp = "mh3dgrp.frx":09AA
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 0
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin Mh3dgrpLib.Mh3dGroup Mh3dCommand1
- Height = 495
- Index = 0
- Left = 4560
- TabIndex = 15
- Top = 720
- Width = 1335
- _Version = 65536
- _ExtentX = 2355
- _ExtentY = 873
- _StockProps = 79
- Caption = "Group 0"
- BackColor = -2147483643
- TintColor = 16711935
- Alignment = 2
- AutoSize = -1 'True
- BevelSize = 2
- BorderColor = -2147483642
- BorderStyle = 2
- FillColor = -2147483633
- FontTransparent = -1 'True
- LightColor = -2147483643
- Multiline = 0 'False
- PictureDown = "mh3dgrp.frx":09C6
- PicturePressed = "mh3dgrp.frx":09E2
- PictureUp = "mh3dgrp.frx":09FE
- ShadowColor = -2147483632
- TextColor = -2147483640
- WallPaper = 0
- StateButton = -1 'True
- Value = 0 'False
- Group = 0
- DataText = ""
- DataStyle = 0
- NoFocusRect = 0 'False
- End
- Begin VB.Label Label2
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- BorderStyle = 1 'Fixed Single
- Caption = $"mh3dgrp.frx":0A1A
- ForeColor = &H00000000&
- Height = 975
- Left = 120
- TabIndex = 24
- Top = 120
- Width = 4335
- End
- Attribute VB_Name = "mhgroup"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim LastButton As Integer
- Dim CurrentGroup As Integer
- Private Sub Check1_Click()
- If LastButton > -1 Then
- If Check1.Value Then
- mh3dcommand1(LastButton).Caption = "This is a longer caption so that you can see the multiline feature at work."
- mh3dcommand1(LastButton).MultiLine = -1
- Else
- mh3dcommand1(LastButton).Caption = "Group" + Str$(mh3dcommand1(LastButton).Group)
- mh3dcommand1(LastButton).MultiLine = 0
- End If
- End If
- End Sub
- Private Sub Check2_Click()
- If LastButton > -1 Then
- mh3dcommand1(LastButton).BorderStyle = Check2.Value
- End If
- End Sub
- Private Sub Command1_Click(Index As Integer)
- ColorSelect.Show 1
- Select Case Index
- Case 0
- mh3dcommand1(LastButton).TextColor = currentcolor&
- Case 1
- mh3dcommand1(LastButton).FillColor = currentcolor&
- Case 2
- mh3dcommand1(LastButton).LightColor = currentcolor&
- Case 3
- mh3dcommand1(LastButton).ShadowColor = currentcolor&
- End Select
- End Sub
- Private Sub Command2_Click()
- Unload mhgroup
- End Sub
- Private Sub Form_Load()
- CenterForm Me
- End Sub
- Private Sub HScroll1_Change()
- If LastButton > -1 Then
- label1.Caption = Str$(HScroll1.Value)
- mh3dcommand1(LastButton).BevelSize = HScroll1.Value
- End If
- End Sub
- Private Sub Label4_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- CurrentGroup = Index
- Label4(Index).Drag
- End Sub
- Private Sub Mh3dCommand1_Click(Index As Integer)
- LastButton = Index
- End Sub
- Private Sub Mh3dCommand1_DragDrop(Index As Integer, Source As Control, X As Single, Y As Single)
- mh3dcommand1(Index).Group = CurrentGroup
- mh3dcommand1(Index).Caption = "Group" + Str$(CurrentGroup)
- End Sub
- Private Sub Mh3dCommand1_GotFocus(Index As Integer)
- LastButton = -1
- If mh3dcommand1(Index).MultiLine Then
- Check1.Value = 1
- End If
- If mh3dcommand1(Index).BorderStyle Then
- Check2.Value = 1
- End If
- HScroll1.Value = mh3dcommand1(Index).BevelSize
- label1.Caption = Str$(HScroll1.Value)
- Option1(mh3dcommand1(Index).Alignment).Value = -1
- LastButton = Index
- End Sub
- Private Sub Option1_Click(Index As Integer)
- If LastButton > -1 Then
- mh3dcommand1(LastButton).Alignment = Index
- End If
- End Sub
-