home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / shad_box / generapp.frm < prev    next >
Text File  |  1993-12-23  |  7KB  |  258 lines

  1. VERSION 2.00
  2. Begin Form Shadbx_Form 
  3.    Caption         =   "Shadowed Color Box Test"
  4.    ClientHeight    =   5325
  5.    ClientLeft      =   1290
  6.    ClientTop       =   2085
  7.    ClientWidth     =   5085
  8.    ClipControls    =   0   'False
  9.    Height          =   6015
  10.    Left            =   1230
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   5325
  13.    ScaleWidth      =   5085
  14.    Top             =   1455
  15.    Width           =   5205
  16.    Begin ShadBx ShadBx1 
  17.       BackColor       =   &H00FFFF80&
  18.       ForeColor       =   &H00FF0000&
  19.       Left            =   360
  20.       Top             =   3600
  21.    End
  22.    Begin ComboBox Combo1 
  23.       Height          =   300
  24.       Left            =   240
  25.       TabIndex        =   14
  26.       Text            =   "Combo1"
  27.       Top             =   2880
  28.       Width           =   2175
  29.    End
  30.    Begin CommandButton BTN_Dialog 
  31.       Caption         =   "Dialog"
  32.       Height          =   375
  33.       Left            =   2640
  34.       TabIndex        =   13
  35.       Top             =   240
  36.       Width           =   975
  37.    End
  38.    Begin OptionButton Option3 
  39.       Caption         =   "Maybe option"
  40.       Height          =   255
  41.       Left            =   1200
  42.       TabIndex        =   12
  43.       Top             =   4320
  44.       Width           =   1575
  45.    End
  46.    Begin PictureBox Picture1 
  47.       AutoSize        =   -1  'True
  48.       ClipControls    =   0   'False
  49.       Height          =   360
  50.       Left            =   1080
  51.       Picture         =   GENERAPP.FRX:0000
  52.       ScaleHeight     =   330
  53.       ScaleWidth      =   360
  54.       TabIndex        =   11
  55.       Top             =   720
  56.       Width           =   390
  57.    End
  58.    Begin CheckBox Check2 
  59.       Caption         =   "That"
  60.       Height          =   255
  61.       Left            =   1200
  62.       TabIndex        =   10
  63.       Top             =   3840
  64.       Width           =   1200
  65.    End
  66.    Begin CheckBox Check1 
  67.       Caption         =   "This"
  68.       Height          =   255
  69.       Left            =   1200
  70.       TabIndex        =   9
  71.       Top             =   3360
  72.       Width           =   1200
  73.    End
  74.    Begin Frame Frame1 
  75.       Caption         =   "Do it now"
  76.       Height          =   1215
  77.       Left            =   3000
  78.       TabIndex        =   6
  79.       Top             =   3120
  80.       Width           =   1695
  81.       Begin OptionButton Option2 
  82.          Caption         =   "No"
  83.          Height          =   255
  84.          Left            =   240
  85.          TabIndex        =   8
  86.          Top             =   720
  87.          Width           =   1000
  88.       End
  89.       Begin OptionButton Option1 
  90.          Caption         =   "Yes"
  91.          Height          =   255
  92.          Left            =   240
  93.          TabIndex        =   7
  94.          Top             =   360
  95.          Width           =   1000
  96.       End
  97.    End
  98.    Begin TextBox TXT_Result 
  99.       BackColor       =   &H00FFFFFF&
  100.       ForeColor       =   &H00000000&
  101.       Height          =   375
  102.       Left            =   120
  103.       TabIndex        =   5
  104.       Text            =   "Status output"
  105.       Top             =   4800
  106.       Width           =   4815
  107.    End
  108.    Begin TextBox TXT_KeyString 
  109.       BackColor       =   &H00FFFFFF&
  110.       ForeColor       =   &H00000000&
  111.       Height          =   375
  112.       Left            =   120
  113.       TabIndex        =   2
  114.       Text            =   "This is a popup message to display in the window. The message can be of long length, or it can be short."
  115.       Top             =   1440
  116.       Width           =   4815
  117.    End
  118.    Begin CommandButton BTN_Exit 
  119.       Caption         =   "Exit"
  120.       Height          =   375
  121.       Left            =   3840
  122.       TabIndex        =   1
  123.       Top             =   240
  124.       Width           =   1095
  125.    End
  126.    Begin TextBox TXT_SearchString 
  127.       BackColor       =   &H00FFFFFF&
  128.       ForeColor       =   &H00000000&
  129.       Height          =   375
  130.       Left            =   120
  131.       TabIndex        =   0
  132.       Text            =   "Dawg"
  133.       Top             =   2280
  134.       Width           =   4815
  135.    End
  136.    Begin Label Label2 
  137.       Caption         =   "Click Bell for popup window information"
  138.       Height          =   495
  139.       Left            =   480
  140.       TabIndex        =   15
  141.       Top             =   120
  142.       Width           =   1815
  143.    End
  144.    Begin Label Label3 
  145.       Alignment       =   2  'Center
  146.       Caption         =   "Search String"
  147.       Height          =   255
  148.       Left            =   120
  149.       TabIndex        =   4
  150.       Top             =   1920
  151.       Width           =   4815
  152.    End
  153.    Begin Label Label1 
  154.       Alignment       =   2  'Center
  155.       Caption         =   "Key String"
  156.       Height          =   255
  157.       Left            =   120
  158.       TabIndex        =   3
  159.       Top             =   1080
  160.       Width           =   4815
  161.    End
  162.    Begin Menu nmu_File 
  163.       Caption         =   "&File"
  164.       Begin Menu mnu_Exit 
  165.          Caption         =   "&Exit"
  166.       End
  167.    End
  168.    Begin Menu mnu_Edit 
  169.       Caption         =   "&Edit"
  170.       Begin Menu mnu_Cut 
  171.          Caption         =   "Cu&t"
  172.       End
  173.       Begin Menu mnu_Copy 
  174.          Caption         =   "&Copy"
  175.       End
  176.       Begin Menu mnu_Paste 
  177.          Caption         =   "&Paste"
  178.       End
  179.       Begin Menu mnu_submenu 
  180.          Caption         =   "SubMenu"
  181.          Begin Menu mnu_submenu1 
  182.             Caption         =   "SubMenu 1"
  183.          End
  184.          Begin Menu mnu_submenu2 
  185.             Caption         =   "SubMenu 2"
  186.          End
  187.       End
  188.    End
  189.    Begin Menu mnu_help 
  190.       Caption         =   "&Help"
  191.       Begin Menu mnu_HelpBallons 
  192.          Caption         =   "Help &Shadow Box"
  193.       End
  194.    End
  195. End
  196. Option Explicit
  197.  
  198. Sub BTN_Dialog_Click ()
  199.     Dialog.Show
  200. End Sub
  201.  
  202. Sub BTN_Exit_Click ()
  203.     mnu_Exit_Click
  204. End Sub
  205.  
  206. Sub Form_Load ()
  207.     If Me.WindowState = 0 Then
  208.         Me.Top = 0
  209.         Me.Left = 0
  210.     End If
  211. End Sub
  212.  
  213. Sub Form_Resize ()
  214.  
  215.     ' don't do resizing for the demo
  216.     If Me.WindowState = 0 Then
  217.         Me.Height = 6015
  218.         Me.Width = 5175
  219.     End If
  220.  
  221. End Sub
  222.  
  223. Sub mnu_Exit_Click ()
  224.     End
  225. End Sub
  226.  
  227. Sub mnu_HelpBallons_Click ()
  228.  
  229.     ' initial help text string
  230.     ShadBx1.MessageText = TXT_KeyString.Text
  231.  
  232. End Sub
  233.  
  234. Sub Picture1_Click ()
  235. Dim Msg As String
  236. Dim CRLF As String
  237. Dim QBCBack As Long
  238.  
  239.     CRLF = Chr$(13) + Chr$(10)
  240.  
  241.     Msg = "You have just clicked on the Bell Picture." + CRLF + CRLF
  242.     Msg = Msg + "Fill the popup window with the advisory text." + CRLF + CRLF
  243.     Msg = Msg + "The image could contain a hotspot that brings up the popup window when the spot is hit."
  244.  
  245.     ' store original color
  246.     QBCBack = ShadBx1.BackColor
  247.     ShadBx1.MessageText = Msg
  248.  
  249.     ' set new BackColor
  250.     ShadBx1.BackColor = QBColor(14)
  251.     ShadBx1.MessageText = "A short message."
  252.  
  253.     ' return original backcolor
  254.     ShadBx1.BackColor = QBCBack
  255.  
  256. End Sub
  257.  
  258.