home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / QBAS / 5PAK20.ZIP / SHAD20.ZIP / SAMPLE.ZIP / GENERAPP.FRM < prev    next >
Text File  |  1993-08-03  |  6KB  |  236 lines

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