home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Ultraconta21647710102009.psc / UltraContainer / test / Form1.frm next >
Text File  |  2009-10-10  |  15KB  |  462 lines

  1. VERSION 5.00
  2. Object = "{1C574F76-C2F9-4951-88C5-714FA56A9E03}#1.0#0"; "UltraContainer.ocx"
  3. Begin VB.Form Form1 
  4.    AutoRedraw      =   -1  'True
  5.    Caption         =   "Ultracontainer Demo"
  6.    ClientHeight    =   9660
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   15945
  10.    LinkTopic       =   "Form1"
  11.    Picture         =   "Form1.frx":0000
  12.    ScaleHeight     =   9660
  13.    ScaleWidth      =   15945
  14.    StartUpPosition =   3  'Windows Default
  15.    WindowState     =   2  'Maximized
  16.    Begin UltraContainer.UltraPictureBox upcEnterData 
  17.       Height          =   6135
  18.       Left            =   4050
  19.       TabIndex        =   5
  20.       Top             =   210
  21.       Width           =   5385
  22.       _extentx        =   9499
  23.       _extenty        =   10821
  24.       font            =   "Form1.frx":5D54E
  25.       fontname        =   "MS Sans Serif"
  26.       fontsize        =   8,25
  27.       scalemode       =   3
  28.       bordercolor     =   32768
  29.       showtitle       =   -1  'True
  30.       titlebackcolorfrom=   16384
  31.       titlebackcolorto=   32768
  32.       titlefontsize   =   12
  33.       titlefontbold   =   -1  'True
  34.       titlefontcolor  =   8454143
  35.       showbackgroundgradient=   -1  'True
  36.       backgroundgradientfrom=   16384
  37.       backgroundgradientto=   12648447
  38.       titleheight     =   32
  39.       titlecaption    =   "Enter your data here"
  40.       transparencydistance=   100
  41.       showmirror      =   -1  'True
  42.       mirrorpercent   =   50
  43.       fadeenabled     =   -1  'True
  44.       Begin VB.CommandButton cmdClear 
  45.          Caption         =   "Clear"
  46.          Height          =   465
  47.          Left            =   2190
  48.          TabIndex        =   13
  49.          Top             =   2550
  50.          Width           =   1305
  51.       End
  52.       Begin VB.CommandButton cmdSave 
  53.          Caption         =   "Save"
  54.          Height          =   465
  55.          Left            =   3600
  56.          TabIndex        =   12
  57.          Top             =   2550
  58.          Width           =   1305
  59.       End
  60.       Begin VB.TextBox txtComment 
  61.          Appearance      =   0  'Flat
  62.          Height          =   1065
  63.          Left            =   1410
  64.          MultiLine       =   -1  'True
  65.          TabIndex        =   10
  66.          Text            =   "Form1.frx":5D57A
  67.          Top             =   1410
  68.          Width           =   3495
  69.       End
  70.       Begin VB.TextBox txtLastName 
  71.          Appearance      =   0  'Flat
  72.          Height          =   315
  73.          Left            =   1410
  74.          TabIndex        =   8
  75.          Text            =   "Costinu"
  76.          Top             =   990
  77.          Width           =   3495
  78.       End
  79.       Begin VB.TextBox txtFirstName 
  80.          Appearance      =   0  'Flat
  81.          Height          =   315
  82.          Left            =   1410
  83.          TabIndex        =   6
  84.          Text            =   "Costinu"
  85.          Top             =   570
  86.          Width           =   3495
  87.       End
  88.       Begin VB.Label Label3 
  89.          BackStyle       =   0  'Transparent
  90.          Caption         =   "Comment"
  91.          ForeColor       =   &H00FFFFFF&
  92.          Height          =   345
  93.          Left            =   150
  94.          TabIndex        =   11
  95.          Top             =   1410
  96.          Width           =   1035
  97.       End
  98.       Begin VB.Label Label2 
  99.          BackStyle       =   0  'Transparent
  100.          Caption         =   "Last name"
  101.          ForeColor       =   &H00FFFFFF&
  102.          Height          =   345
  103.          Left            =   150
  104.          TabIndex        =   9
  105.          Top             =   1020
  106.          Width           =   1035
  107.       End
  108.       Begin VB.Label Label1 
  109.          BackStyle       =   0  'Transparent
  110.          Caption         =   "First name"
  111.          ForeColor       =   &H00FFFFFF&
  112.          Height          =   345
  113.          Left            =   150
  114.          TabIndex        =   7
  115.          Top             =   600
  116.          Width           =   1035
  117.       End
  118.    End
  119.    Begin UltraContainer.UltraPictureBox upcMyData 
  120.       Height          =   3165
  121.       Left            =   180
  122.       TabIndex        =   0
  123.       Top             =   180
  124.       Width           =   3465
  125.       _extentx        =   6112
  126.       _extenty        =   5583
  127.       backcolor       =   12632256
  128.       font            =   "Form1.frx":5D5D0
  129.       fontname        =   "Arial"
  130.       fontsize        =   9,75
  131.       scalemode       =   3
  132.       showborder      =   -1  'True
  133.       bordercolor     =   16697774
  134.       showtitle       =   -1  'True
  135.       titlebackcolorfrom=   8388608
  136.       titlebackcolorto=   12282702
  137.       titlefontbold   =   -1  'True
  138.       titlefontcolor  =   16777215
  139.       showbackgroundgradient=   -1  'True
  140.       backgroundgradientfrom=   5451523
  141.       backgroundgradientto=   12282702
  142.       titlecaption    =   "This is my data"
  143.       transparencydistance=   180
  144.       fadeenabled     =   -1  'True
  145.       Begin VB.Label lblMyData 
  146.          BackStyle       =   0  'Transparent
  147.          Caption         =   "N/A"
  148.          BeginProperty Font 
  149.             Name            =   "Tahoma"
  150.             Size            =   11.25
  151.             Charset         =   0
  152.             Weight          =   400
  153.             Underline       =   0   'False
  154.             Italic          =   0   'False
  155.             Strikethrough   =   0   'False
  156.          EndProperty
  157.          ForeColor       =   &H00FFFFFF&
  158.          Height          =   1935
  159.          Left            =   210
  160.          TabIndex        =   1
  161.          Top             =   510
  162.          Width           =   3120
  163.          WordWrap        =   -1  'True
  164.       End
  165.    End
  166.    Begin UltraContainer.UltraPictureBox UltraPictureBox1 
  167.       Height          =   5205
  168.       Left            =   180
  169.       TabIndex        =   2
  170.       Top             =   3510
  171.       Width           =   3465
  172.       _extentx        =   6112
  173.       _extenty        =   9181
  174.       backcolor       =   12632256
  175.       font            =   "Form1.frx":5D5F4
  176.       fontname        =   "Arial"
  177.       fontsize        =   9,75
  178.       scalemode       =   3
  179.       showborder      =   -1  'True
  180.       bordercolor     =   16697774
  181.       roundshape      =   -1  'True
  182.       showtitle       =   -1  'True
  183.       titlebackcolorfrom=   64
  184.       titlebackcolorto=   192
  185.       titlefontbold   =   -1  'True
  186.       titlefontcolor  =   16777215
  187.       showbackgroundgradient=   -1  'True
  188.       backgroundgradientfrom=   128
  189.       backgroundgradientto=   12632319
  190.       titlecaption    =   "Round shape"
  191.       transparencydistance=   180
  192.       fadeenabled     =   -1  'True
  193.       Begin VB.CommandButton Command1 
  194.          Caption         =   "Refresh"
  195.          Height          =   465
  196.          Left            =   1860
  197.          TabIndex        =   4
  198.          Top             =   4650
  199.          Width           =   1455
  200.       End
  201.       Begin VB.ListBox List1 
  202.          Height          =   3960
  203.          Left            =   120
  204.          TabIndex        =   3
  205.          Top             =   480
  206.          Width           =   3195
  207.       End
  208.    End
  209.    Begin UltraContainer.UltraPictureBox upcMyPics 
  210.       Height          =   8535
  211.       Left            =   9780
  212.       TabIndex        =   14
  213.       Top             =   210
  214.       Width           =   5235
  215.       _extentx        =   9234
  216.       _extenty        =   15055
  217.       backcolor       =   12632256
  218.       font            =   "Form1.frx":5D618
  219.       fontname        =   "Arial"
  220.       fontsize        =   9,75
  221.       showborder      =   -1  'True
  222.       bordercolor     =   16576
  223.       roundshape      =   -1  'True
  224.       showtitle       =   -1  'True
  225.       titlebackcolorfrom=   16512
  226.       titlebackcolorto=   8438015
  227.       titlefontbold   =   -1  'True
  228.       titlefontcolor  =   16777215
  229.       showbackgroundgradient=   -1  'True
  230.       backgroundgradientfrom=   33023
  231.       backgroundgradientto=   8438015
  232.       backgroundgradientdirection=   1
  233.       titlecaption    =   "My pictures"
  234.       transparencydistance=   180
  235.       Begin UltraContainer.UltraPictureBox UltraPicShow 
  236.          Height          =   2835
  237.          Left            =   2760
  238.          TabIndex        =   20
  239.          Top             =   540
  240.          Width           =   2205
  241.          _extentx        =   3889
  242.          _extenty        =   5001
  243.          font            =   "Form1.frx":5D63C
  244.          fontname        =   "MS Sans Serif"
  245.          fontsize        =   8,25
  246.          picture         =   "Form1.frx":5D668
  247.          scalemode       =   3
  248.          bordercolor     =   32768
  249.          transparencydistance=   210
  250.          showmirror      =   -1  'True
  251.          mirrorpercent   =   50
  252.       End
  253.       Begin UltraContainer.UltraPictureBox upcMyPic 
  254.          Height          =   1485
  255.          Index           =   4
  256.          Left            =   300
  257.          TabIndex        =   19
  258.          Top             =   6900
  259.          Width           =   2205
  260.          _extentx        =   3889
  261.          _extenty        =   2619
  262.          font            =   "Form1.frx":62562
  263.          fontname        =   "MS Sans Serif"
  264.          fontsize        =   8,25
  265.          picture         =   "Form1.frx":6258E
  266.          scalemode       =   3
  267.          showborder      =   -1  'True
  268.          bordercolor     =   32768
  269.          transparencydistance=   230
  270.          mirrorpercent   =   30
  271.          fadeenabled     =   -1  'True
  272.       End
  273.       Begin UltraContainer.UltraPictureBox upcMyPic 
  274.          Height          =   1485
  275.          Index           =   3
  276.          Left            =   300
  277.          TabIndex        =   18
  278.          Top             =   5310
  279.          Width           =   2205
  280.          _extentx        =   3889
  281.          _extenty        =   2619
  282.          font            =   "Form1.frx":6ED64
  283.          fontname        =   "MS Sans Serif"
  284.          fontsize        =   8,25
  285.          picture         =   "Form1.frx":6ED90
  286.          scalemode       =   3
  287.          showborder      =   -1  'True
  288.          bordercolor     =   32768
  289.          transparencydistance=   230
  290.          mirrorpercent   =   30
  291.          fadeenabled     =   -1  'True
  292.       End
  293.       Begin UltraContainer.UltraPictureBox upcMyPic 
  294.          Height          =   1485
  295.          Index           =   2
  296.          Left            =   300
  297.          TabIndex        =   17
  298.          Top             =   3720
  299.          Width           =   2205
  300.          _extentx        =   3889
  301.          _extenty        =   2619
  302.          font            =   "Form1.frx":7423E
  303.          fontname        =   "MS Sans Serif"
  304.          fontsize        =   8,25
  305.          picture         =   "Form1.frx":7426A
  306.          scalemode       =   3
  307.          showborder      =   -1  'True
  308.          bordercolor     =   32768
  309.          transparencydistance=   230
  310.          mirrorpercent   =   30
  311.          fadeenabled     =   -1  'True
  312.       End
  313.       Begin UltraContainer.UltraPictureBox upcMyPic 
  314.          Height          =   1485
  315.          Index           =   1
  316.          Left            =   300
  317.          TabIndex        =   16
  318.          Top             =   2130
  319.          Width           =   2205
  320.          _extentx        =   3889
  321.          _extenty        =   2619
  322.          font            =   "Form1.frx":7BECC
  323.          fontname        =   "MS Sans Serif"
  324.          fontsize        =   8,25
  325.          picture         =   "Form1.frx":7BEF8
  326.          scalemode       =   3
  327.          showborder      =   -1  'True
  328.          bordercolor     =   32768
  329.          transparencydistance=   230
  330.          mirrorpercent   =   30
  331.          fadeenabled     =   -1  'True
  332.       End
  333.       Begin UltraContainer.UltraPictureBox upcMyPic 
  334.          Height          =   1485
  335.          Index           =   0
  336.          Left            =   300
  337.          TabIndex        =   15
  338.          Top             =   540
  339.          Width           =   2205
  340.          _extentx        =   3889
  341.          _extenty        =   2619
  342.          font            =   "Form1.frx":8129A
  343.          fontname        =   "MS Sans Serif"
  344.          fontsize        =   8,25
  345.          picture         =   "Form1.frx":812C6
  346.          scalemode       =   3
  347.          showborder      =   -1  'True
  348.          bordercolor     =   32768
  349.          transparencydistance=   230
  350.          mirrorpercent   =   30
  351.          fadeenabled     =   -1  'True
  352.       End
  353.       Begin VB.Label Label4 
  354.          BackStyle       =   0  'Transparent
  355.          Caption         =   "<-- Go with mouse over the thumbnail pictures"
  356.          Height          =   675
  357.          Left            =   2820
  358.          TabIndex        =   21
  359.          Top             =   3690
  360.          Width           =   1995
  361.       End
  362.    End
  363. End
  364. Attribute VB_Name = "Form1"
  365. Attribute VB_GlobalNameSpace = False
  366. Attribute VB_Creatable = False
  367. Attribute VB_PredeclaredId = True
  368. Attribute VB_Exposed = False
  369. Option Explicit
  370.  
  371.  
  372. Dim LastUsedIndex As Long
  373.  
  374. Private Sub Command3_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  375.     UltraPictureBox1.RedrawMirror
  376. End Sub
  377.  
  378. Private Sub Command3_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  379.     UltraPictureBox1.RedrawMirror
  380. End Sub
  381.  
  382. Private Sub cmdClear_Click()
  383.     txtComment.Text = ""
  384.     txtFirstName.Text = ""
  385.     txtLastName.Text = ""
  386. End Sub
  387.  
  388. Private Sub cmdClear_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  389.     upcEnterData.RedrawMirror
  390. End Sub
  391.  
  392. Private Sub cmdClear_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  393.     upcEnterData.RedrawMirror
  394. End Sub
  395.  
  396. Private Sub cmdSave_Click()
  397.     lblMyData.Caption = "First name: " & txtFirstName.Text & vbCrLf & _
  398.                 "Last name: " & txtLastName.Text & vbCrLf & _
  399.                 "Comment: " & txtComment.Text & vbCrLf
  400.     
  401.     upcMyData.Update
  402. End Sub
  403.  
  404. Private Sub cmdSave_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  405.     upcEnterData.RedrawMirror
  406. End Sub
  407.  
  408. Private Sub cmdSave_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  409.     upcEnterData.RedrawMirror
  410. End Sub
  411.  
  412.  
  413.  
  414.  
  415.  
  416. Private Sub Form_Activate()
  417.     upcEnterData.RedrawMirror
  418.     upcMyPics.Update
  419.     upcMyPics.SetTransparency 180
  420.     UltraPicShow.Update
  421. End Sub
  422.  
  423. Private Sub Text1_Change()
  424.     UltraPictureBox1.RedrawMirror
  425. End Sub
  426.  
  427. Private Sub Form_Load()
  428.     Dim i As Integer
  429.     
  430.     upcMyData.Update
  431.     upcEnterData.Update
  432.  
  433.     
  434.     For i = 1 To 25
  435.         List1.AddItem "List item #" & i
  436.     Next i
  437.     
  438.     cmdSave_Click
  439.     
  440. End Sub
  441.  
  442. Private Sub txtComment_Change()
  443.     upcEnterData.RedrawMirror
  444. End Sub
  445.  
  446. Private Sub txtFirstName_Change()
  447.     upcEnterData.RedrawMirror
  448. End Sub
  449.  
  450. Private Sub txtLastName_Change()
  451.     upcEnterData.RedrawMirror
  452. End Sub
  453.  
  454.  
  455. Private Sub upcMyPic_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
  456.     If LastUsedIndex <> Index Then
  457.         LastUsedIndex = Index
  458.         Set UltraPicShow.Picture = upcMyPic(Index).Image
  459.         UltraPicShow.Update
  460.     End If
  461. End Sub
  462.