home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 January / dppcpro0199a.iso / January / Fp98 / SDK / Utility / Apitests / Apitests.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-09-18  |  7.6 KB  |  252 lines

  1. VERSION 5.00
  2. Begin VB.Form frmAPITests 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "FrontPage API Tests"
  5.    ClientHeight    =   4455
  6.    ClientLeft      =   1125
  7.    ClientTop       =   1530
  8.    ClientWidth     =   6735
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    PaletteMode     =   1  'UseZOrder
  13.    ScaleHeight     =   4455
  14.    ScaleWidth      =   6735
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.Frame Frame3 
  17.       Caption         =   "FrontPage To Do List"
  18.       Height          =   855
  19.       Left            =   120
  20.       TabIndex        =   11
  21.       Top             =   3420
  22.       Width           =   6495
  23.       Begin VB.CommandButton btnCompleteTask 
  24.          Caption         =   "Complete Task"
  25.          Height          =   375
  26.          Left            =   4860
  27.          TabIndex        =   19
  28.          Top             =   300
  29.          Width           =   1455
  30.       End
  31.       Begin VB.CommandButton btnAddTask 
  32.          Caption         =   "Add Task"
  33.          Height          =   375
  34.          Left            =   3300
  35.          TabIndex        =   18
  36.          Top             =   300
  37.          Width           =   1455
  38.       End
  39.       Begin VB.CommandButton btnTaskCount 
  40.          Caption         =   "Get Task Count"
  41.          Height          =   375
  42.          Left            =   1740
  43.          TabIndex        =   17
  44.          Top             =   300
  45.          Width           =   1455
  46.       End
  47.       Begin VB.CommandButton btnShow 
  48.          Caption         =   "Show/Hide"
  49.          Height          =   375
  50.          Left            =   180
  51.          TabIndex        =   16
  52.          Top             =   300
  53.          Width           =   1455
  54.       End
  55.    End
  56.    Begin VB.Frame Frame2 
  57.       Caption         =   "FrontPage Editor"
  58.       Height          =   915
  59.       Left            =   120
  60.       TabIndex        =   10
  61.       Top             =   2340
  62.       Width           =   6495
  63.       Begin VB.CommandButton btnNewPage 
  64.          Caption         =   "New Web Page"
  65.          Height          =   375
  66.          Left            =   4860
  67.          TabIndex        =   15
  68.          Top             =   360
  69.          Width           =   1455
  70.       End
  71.       Begin VB.CommandButton btnTop 
  72.          Caption         =   "Bring to Top"
  73.          Height          =   375
  74.          Left            =   3300
  75.          TabIndex        =   14
  76.          Top             =   360
  77.          Width           =   1455
  78.       End
  79.       Begin VB.CommandButton btnQueryPage 
  80.          Caption         =   "Query Web Page"
  81.          Height          =   375
  82.          Left            =   1740
  83.          TabIndex        =   13
  84.          Top             =   360
  85.          Width           =   1455
  86.       End
  87.       Begin VB.CommandButton btnOpenPage 
  88.          Caption         =   "Open Web Page"
  89.          Height          =   375
  90.          Left            =   180
  91.          TabIndex        =   12
  92.          Top             =   360
  93.          Width           =   1455
  94.       End
  95.    End
  96.    Begin VB.Frame Frame1 
  97.       Caption         =   "FrontPage Explorer"
  98.       Height          =   1395
  99.       Left            =   120
  100.       TabIndex        =   1
  101.       Top             =   780
  102.       Width           =   6495
  103.       Begin VB.CommandButton btnListDocs 
  104.          Caption         =   "List Documents"
  105.          Height          =   375
  106.          Left            =   1740
  107.          TabIndex        =   9
  108.          Top             =   360
  109.          Width           =   1455
  110.       End
  111.       Begin VB.CommandButton btnPageInfo 
  112.          Caption         =   "Page Information"
  113.          Height          =   375
  114.          Left            =   1740
  115.          TabIndex        =   8
  116.          Top             =   840
  117.          Width           =   1455
  118.       End
  119.       Begin VB.CommandButton btnSaveDoc 
  120.          Caption         =   "Get Document"
  121.          Height          =   375
  122.          Left            =   3300
  123.          TabIndex        =   7
  124.          Top             =   840
  125.          Width           =   1455
  126.       End
  127.       Begin VB.CommandButton btnWebInfo 
  128.          Caption         =   "Web Information"
  129.          Height          =   375
  130.          Left            =   180
  131.          TabIndex        =   6
  132.          Top             =   360
  133.          Width           =   1455
  134.       End
  135.       Begin VB.CommandButton btnOpenWeb 
  136.          Caption         =   "Open Web"
  137.          Height          =   375
  138.          Left            =   3300
  139.          TabIndex        =   5
  140.          Top             =   360
  141.          Width           =   1455
  142.       End
  143.       Begin VB.CommandButton btnMisc 
  144.          Caption         =   "Miscellaneous"
  145.          Height          =   375
  146.          Left            =   4860
  147.          TabIndex        =   4
  148.          Top             =   840
  149.          Width           =   1455
  150.       End
  151.       Begin VB.CommandButton btnCreate 
  152.          Caption         =   "Create/Remove"
  153.          Height          =   375
  154.          Left            =   180
  155.          TabIndex        =   3
  156.          Top             =   840
  157.          Width           =   1455
  158.       End
  159.       Begin VB.CommandButton btnPutDocs 
  160.          Caption         =   "Put Documents"
  161.          Height          =   375
  162.          Left            =   4860
  163.          TabIndex        =   2
  164.          Top             =   360
  165.          Width           =   1455
  166.       End
  167.    End
  168.    Begin VB.Label Label1 
  169.       Caption         =   $"apitests.frx":0000
  170.       Height          =   615
  171.       Left            =   120
  172.       TabIndex        =   0
  173.       Top             =   120
  174.       Width           =   6495
  175.    End
  176. Attribute VB_Name = "frmAPITests"
  177. Attribute VB_GlobalNameSpace = False
  178. Attribute VB_Creatable = False
  179. Attribute VB_PredeclaredId = True
  180. Attribute VB_Exposed = False
  181. Option Explicit
  182. Private Sub btnAddTask_Click()
  183.     frmAddTask.Show 1
  184. End Sub
  185. Private Sub btnCompleteTask_Click()
  186.     frmCompleteTask.Show 1
  187. End Sub
  188. Private Sub btnCreate_Click()
  189.     frmCreate.Show 1
  190. End Sub
  191. Private Sub btnListDocs_Click()
  192.     MousePointer = 11
  193.     frmListDocs.Show 1
  194.     MousePointer = 0
  195. End Sub
  196. Private Sub btnMisc_Click()
  197.     frmMisc.Show 1
  198. End Sub
  199. Private Sub btnNewPage_Click()
  200.     Dim editor As Object
  201.     Dim page As Object
  202.     Set editor = CreateObject("FrontPage.Editor")
  203.     Set page = editor.vtiNewWebPage("test.htm", "", "")
  204.     Set editor = Nothing
  205. End Sub
  206. Private Sub btnOpenPage_Click()
  207.     frmOpenPage.Show 1
  208. End Sub
  209. Private Sub btnOpenWeb_Click()
  210.     frmOpenWeb.Show 1
  211. End Sub
  212. Private Sub btnPageInfo_Click()
  213.     MousePointer = 11
  214.     frmPageInfo.Show 1
  215.     MousePointer = 0
  216. End Sub
  217. Private Sub btnPutDocs_Click()
  218.     frmPutDocs.Show 1
  219. End Sub
  220. Private Sub btnQueryPage_Click()
  221.     frmQueryPage.Show 1
  222. End Sub
  223. Private Sub btnSaveDoc_Click()
  224.     frmSaveDoc.Show 1
  225. End Sub
  226. Private Sub btnShow_Click()
  227.     frmTDLshow.Show 1
  228. End Sub
  229. Private Sub btnTaskCount_Click()
  230.     Dim todolist As Object
  231.     Dim ret As Long
  232.     Set todolist = CreateObject("FrontPage.ToDoList")
  233.     ret = todolist.vtiGetActiveCount()
  234.     Set todolist = Nothing
  235.     MsgBox "There are " & ret & " active tasks in the To Do List."
  236. End Sub
  237. Private Sub btnTop_Click()
  238.     Dim editor As Object
  239.     MousePointer = 11
  240.     Set editor = CreateObject("FrontPage.Editor")
  241.     editor.vtiBringToTop
  242.     Set editor = Nothing
  243.     MousePointer = 0
  244. End Sub
  245. Private Sub btnWebInfo_Click()
  246.     MousePointer = 11
  247.     frmWebInfo.Show 1
  248.     MousePointer = 0
  249. End Sub
  250. Private Sub Label2_Click()
  251. End Sub
  252.