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