home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / STR_PLUS / DEMOMAIN.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1994-07-19  |  5.6 KB  |  184 lines

  1. VERSION 2.00
  2. Begin Form DemoMain 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "String Plus Demo"
  6.    ClientHeight    =   4020
  7.    ClientLeft      =   975
  8.    ClientTop       =   1755
  9.    ClientWidth     =   7335
  10.    ClipControls    =   0   'False
  11.    FillColor       =   &H00FF00FF&
  12.    Height          =   4710
  13.    Left            =   915
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   4020
  17.    ScaleWidth      =   7335
  18.    Top             =   1125
  19.    Width           =   7455
  20.    Begin CommandButton CmdTrick 
  21.       Cancel          =   -1  'True
  22.       Caption         =   "Trick"
  23.       Default         =   -1  'True
  24.       Height          =   375
  25.       Left            =   7440
  26.       TabIndex        =   1
  27.       Top             =   4320
  28.       Width           =   1095
  29.    End
  30.    Begin Label Label1 
  31.       Alignment       =   2  'Center
  32.       BackColor       =   &H00C0C0C0&
  33.       Caption         =   "Label1"
  34.       Height          =   2055
  35.       Left            =   1200
  36.       TabIndex        =   0
  37.       Top             =   480
  38.       Width           =   4935
  39.    End
  40.    Begin Menu mnuDemo 
  41.       Caption         =   "&Demos"
  42.       Begin Menu mnuDemoKeyState 
  43.          Caption         =   "&KeyState Information..."
  44.       End
  45.       Begin Menu mnuDemoManipulate 
  46.          Caption         =   "&Manipulate Strings..."
  47.       End
  48.       Begin Menu mnuDemoNumber 
  49.          Caption         =   "&Number Strings..."
  50.       End
  51.       Begin Menu mnuDemoSuperTextOut 
  52.          Caption         =   "&SuperPrint..."
  53.       End
  54.       Begin Menu mnuDemoTextJustify 
  55.          Caption         =   "Text &Justification..."
  56.       End
  57.       Begin Menu mnuDemoTokens 
  58.          Caption         =   "&Tokens..."
  59.       End
  60.       Begin Menu mnuDemoWordCount 
  61.          Caption         =   "&Word Count..."
  62.       End
  63.       Begin Menu mnuDemoSep1 
  64.          Caption         =   "-"
  65.       End
  66.       Begin Menu mnuDemoExit 
  67.          Caption         =   "E&xit"
  68.       End
  69.    End
  70.    Begin Menu mnuHelp 
  71.       Caption         =   "&Help"
  72.       Begin Menu mnuHelpContents 
  73.          Caption         =   "DLL Help &Contents..."
  74.       End
  75.       Begin Menu mnuHelpSearch 
  76.          Caption         =   "DLL Help &Search..."
  77.       End
  78.       Begin Menu mnuHelpSep 
  79.          Caption         =   "-"
  80.       End
  81.       Begin Menu mnuHelpOrderForm 
  82.          Caption         =   "&Order Form..."
  83.       End
  84.       Begin Menu mnuHelpEvaluation 
  85.          Caption         =   "&Evaluation Form..."
  86.       End
  87.    End
  88. Sub CmdTrick_Click ()
  89.     Unload Me
  90. End Sub
  91. Sub Form_Load ()
  92.     x% = GetStrPlusVersion()
  93.     nl = Chr$(13) + Chr$(10)
  94.     FormCenterScreen Me
  95.     mnuHelp.Caption = Chr$(8) + "&Help"
  96.     msg$ = nl + "This small application demonstrates some" + nl
  97.     msg$ = msg$ + "of the functions of StrPlus.DLL and a few" + nl
  98.     msg$ = msg$ + "VB tricks too.  Print and study the program" + nl
  99.     msg$ = msg$ + "to fully understand how it all works" + nl
  100.     msg$ = msg$ + "together.  Also, read the online Help file" + nl
  101.     msg$ = msg$ + "StrPlus.HLP to learn about the functions in" + nl
  102.     msg$ = msg$ + " this version of StrPlus ... and about how to" + nl
  103.     msg$ = msg$ + " register this shareware utility."
  104.     label1.Caption = msg$
  105. End Sub
  106. Sub Form_Paint ()
  107.     DoForm3D Me, sunken, 3, 0
  108.     DoForm3D Me, raised, 1, 3
  109.     DoControl3D label1, raised, 4
  110. End Sub
  111. Sub Form_Unload (Cancel As Integer)
  112.     'SBhWnd% = GetStatusBarhWnd(Me.hWnd)
  113.     'dummy% = DestroyWindow(SBhWnd%)
  114. End Sub
  115. Sub mnuDemoExit_Click ()
  116.     Unload Me
  117. End Sub
  118. Sub mnuDemoKeyState_Click ()
  119.     Screen.MousePointer = 11
  120.     KeyInfo.Show 1
  121. End Sub
  122. Sub mnuDemoManipulate_Click ()
  123.     Screen.MousePointer = 11
  124.     StrMan.Show 1
  125. End Sub
  126. Sub mnuDemoNumber_Click ()
  127.     Screen.MousePointer = 11
  128.     NbrStr.Show 1
  129. End Sub
  130. Sub mnuDemoSuperTextOut_Click ()
  131.     Screen.MousePointer = 11
  132.     TextOut.Show 1
  133. End Sub
  134. Sub mnuDemoTextJustify_Click ()
  135.     Screen.MousePointer = 11
  136.     TextJust.Show 1
  137. End Sub
  138. Sub mnuDemoTokens_Click ()
  139.     Screen.MousePointer = 11
  140.     Tokens.Show 1
  141. End Sub
  142. Sub mnuDemoWordCount_Click ()
  143.     Screen.MousePointer = 11
  144.     WordCnt.Show 1
  145. End Sub
  146. Sub mnuHelpContents_Click ()
  147.     On Error Resume Next
  148.     MyHelpFile$ = App.Path
  149.     MyHelpFile$ = AddSeparator(MyHelpFile$) + "STRPLUS.HLP"
  150.     Screen.MousePointer = 11
  151.     ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_CONTENTS, 0&)
  152.     Screen.MousePointer = 0
  153. End Sub
  154. Sub mnuHelpEvaluation_Click ()
  155.         On Error Resume Next
  156.         WinPath$ = GetWinDir()
  157.         WinPath$ = AddSeparator(WinPath$) + "WRITE.EXE"
  158.         DocPath$ = App.Path
  159.         DocPath$ = AddSeparator(DocPath$) + "EVALFRM.WRI"
  160.         FullPath$ = WinPath$ + " " + DocPath$
  161.         Screen.MousePointer = 11
  162.         x = Shell(FullPath$, 3)
  163.         Screen.MousePointer = 0
  164. End Sub
  165. Sub mnuHelpOrderForm_Click ()
  166.         On Error Resume Next
  167.         WinPath$ = GetWinDir()
  168.         WinPath$ = AddSeparator(WinPath$) + "WRITE.EXE"
  169.         DocPath$ = App.Path
  170.         DocPath$ = AddSeparator(DocPath$) + "ORDERFRM.WRI"
  171.         FullPath$ = WinPath$ + " " + DocPath$
  172.         Screen.MousePointer = 11
  173.         x = Shell(FullPath$, 3)
  174.         Screen.MousePointer = 0
  175. End Sub
  176. Sub mnuHelpSearch_Click ()
  177.     On Error Resume Next
  178.     MyHelpFile$ = App.Path
  179.     MyHelpFile$ = AddSeparator(MyHelpFile$) + "STRPLUS.HLP"
  180.     Screen.MousePointer = 11
  181.     ret% = WinHelp(Me.hWnd, MyHelpFile$, HELP_PARTIALKEY, "")
  182.     Screen.MousePointer = 0
  183. End Sub
  184.