home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / VISBASIC / PICBTN / SAMPLE.ZIP / PSAMPLE1.FRM < prev    next >
Text File  |  1994-11-02  |  3KB  |  114 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4230
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   4335
  8.    Height          =   4635
  9.    Left            =   1035
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4230
  12.    ScaleWidth      =   4335
  13.    Top             =   1140
  14.    Width           =   4455
  15.    Begin CommandButton Command1 
  16.       Caption         =   "Command1"
  17.       Height          =   495
  18.       Left            =   240
  19.       TabIndex        =   3
  20.       Top             =   960
  21.       Width           =   1695
  22.    End
  23.    Begin CheckBox Check1 
  24.       Caption         =   "Check1"
  25.       Height          =   255
  26.       Left            =   240
  27.       TabIndex        =   2
  28.       Top             =   240
  29.       Width           =   1215
  30.    End
  31.    Begin HScrollBar HScroll1 
  32.       Height          =   255
  33.       Left            =   240
  34.       TabIndex        =   1
  35.       Top             =   600
  36.       Width           =   1695
  37.    End
  38.    Begin MabryPictureButton PicBtn1 
  39.       AutoSize        =   -1  'True
  40.       ButtonColor     =   &H00C0C0C0&
  41.       Caption         =   "PicBtn1|Sample"
  42.       Gap             =   6
  43.       Height          =   1575
  44.       Left            =   240
  45.       Mode            =   0  'Normal
  46.       PictureUp       =   PSAMPLE1.FRX:0000
  47.       Placement       =   0  'Left of text
  48.       TabIndex        =   0
  49.       Top             =   1560
  50.       Width           =   2415
  51.    End
  52. End
  53. Option Explicit
  54.  
  55. Sub Check1_Click ()
  56.     PicBtn1.AutoSize = Check1.Value
  57. End Sub
  58.  
  59. Sub Command1_Click ()
  60.     Select Case Val(Left(Command1.Caption, 1))
  61.         Case 0:
  62.             Command1.Caption = "1 - Above text"
  63.             PicBtn1.Placement = 1
  64.         Case 1:
  65.             Command1.Caption = "2 - Right of text"
  66.             PicBtn1.Placement = 2
  67.         Case 2:
  68.             Command1.Caption = "3 - Below text"
  69.             PicBtn1.Placement = 3
  70.         Case 3:
  71.             Command1.Caption = "4 - Center of button"
  72.             PicBtn1.Placement = 4
  73.         Case 4:
  74.             Command1.Caption = "0 - Left of text"
  75.             PicBtn1.Placement = 0
  76.     End Select
  77. End Sub
  78.  
  79. Sub Form_Load ()
  80.     Form1.Caption = "PicBtn Sample #1"
  81.  
  82.     Form1.Height = 3120
  83.     Form1.Width = 3000
  84.  
  85.     Check1.Top = 240
  86.     Check1.Left = 240
  87.     Check1.Width = 1800
  88.     Check1.Caption = "AutoSize"
  89.     Check1.Value = 1
  90.  
  91.     HScroll1.Top = 600
  92.     HScroll1.Left = 240
  93.     HScroll1.Width = 1800
  94.     HScroll1.Value = 6
  95.     HScroll1.Min = 0
  96.     HScroll1.Max = 20
  97.  
  98.     Command1.Top = 960
  99.     Command1.Left = 240
  100.     Command1.Height = 480
  101.     Command1.Width = 1800
  102.     Command1.Caption = "0 - Left of text"
  103.  
  104.     PicBtn1.Top = 1560
  105.     PicBtn1.Left = 240
  106.     PicBtn1.Width = 2400
  107.     PicBtn1.Height = 900
  108. End Sub
  109.  
  110. Sub HScroll1_Change ()
  111.     PicBtn1.Gap = HScroll1.Value
  112. End Sub
  113.  
  114.