home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 February / PCWK0297.iso / envelop / envelop.6 / Tools / Bootcamp / concepts / novisual / novisual.eto < prev    next >
Text File  |  1996-07-08  |  18KB  |  637 lines

  1. Type ProtoForm From Form
  2.   Dim BtnShowNext As New Button
  3.   Dim BtnShowPrev As New Button
  4.   Dim Label1 As New Label
  5.   Dim Label3 As New Label
  6.   Dim LblCurrentPageNumber As New Label
  7.   Dim Label5 As New Label
  8.   Dim LblLastPageNumber As New Label
  9.  
  10.   ' METHODS for object: ProtoForm
  11.   Sub BtnShowNext_Click()
  12.     FormGroup.ShowNext(Me)
  13.   End Sub
  14.  
  15.   Sub BtnShowPrev_Click()
  16.     FormGroup.ShowPrev(Me)
  17.   End Sub
  18.  
  19.   Sub DisplayForm (cur_page As Integer, last_page As Long)
  20.     LblCurrentPageNumber.Caption = cur_page
  21.     LblLastPageNumber.Caption = last_page
  22.     Show
  23.   End Sub
  24.  
  25. End Type
  26.  
  27. Type NonVisualComponentForm From SampleMasterForm
  28.   Dim BtnRunDemo As New Button
  29.   Dim Label1 As New Label
  30.   Dim Label2 As New Label
  31.   Dim Label3 As New Label
  32.  
  33.   ' METHODS for object: NonVisualComponentForm
  34.   Sub BtnRunDemo_Click()
  35.     Form11.Load
  36.   End Sub
  37.  
  38.   Sub ResetApplication_Click
  39.     Dim i As Integer
  40.     Dim o As Object
  41.     For i = 0 To FormGroup.Count - 1
  42.       o = FormGroup(i)
  43.       If o.Visible Then o.Hide
  44.     Next i
  45.   End Sub
  46.  
  47.   Sub ExitApplication_Click ()
  48.     helpfile.Quit
  49.     ResetApplication_Click
  50.     Hide
  51.   End Sub
  52.  
  53. End Type
  54.  
  55. Type FormGroup From Group
  56.  
  57.   ' METHODS for object: FormGroup
  58.   Sub ShowPrev(current_form as Form)
  59.     Dim i,j as Integer
  60.     Dim prev_form as Form
  61.   
  62.     For i = 0 To Count - 1
  63.       If ObjectAt(i) == current_form Then 
  64.         If i == 0 Then 
  65.           j = Count - 1
  66.         Else 
  67.           j = i - 1
  68.         End If
  69.         prev_form = ObjectAt(j)
  70.         Exit For
  71.       End If
  72.     Next i
  73.   
  74.     If prev_form Then 
  75.       Dim form_top, form_left As Integer
  76.       form_top = current_form.Top
  77.       form_left = current_form.Left
  78.       prev_form.Caption = "Group Number: " & j
  79.       If (prev_form.Left <> form_left) || (prev_form.Top <> form_top) Then 
  80.         prev_form.Move form_left, form_top, prev_form.Width, prev_form.Height
  81.       End If
  82.       prev_form.DisplayForm(j + 1, Count)
  83.       current_form.Hide
  84.     End If
  85.   
  86.   End Sub
  87.  
  88.   Sub ShowNext(current_form as Form)
  89.     Dim i,j as Integer
  90.     Dim next_form as Form
  91.   
  92.     For i = 0 To Count - 1
  93.       If ObjectAt(i) == current_form Then 
  94.         If i == Count - 1 Then 
  95.           j = 0
  96.         Else 
  97.           j = i + 1
  98.         End If
  99.         next_form = ObjectAt(j)
  100.         Exit For
  101.       End If
  102.     Next i
  103.   
  104.     If next_form Then 
  105.       Dim form_top, form_left As Integer
  106.       form_top = current_form.Top
  107.       form_left = current_form.Left
  108.       next_form.Caption = "Group Number: " & j
  109.       If (next_form.Left <> form_left) || (next_form.Top <> form_top) Then 
  110.         next_form.Move form_left, form_top, next_form.Width, next_form.Height
  111.       End If
  112.       next_form.DisplayForm(j + 1, Count)
  113.       current_form.Hide
  114.     End If
  115.   
  116.   End Sub
  117.  
  118. End Type
  119.  
  120. Type Form11 From ProtoForm
  121.   Dim Label2 As New Label
  122.   Dim Button1 As New Button
  123.   Dim Button2 As New Button
  124.  
  125.   ' METHODS for object: Form11
  126.   Sub Load
  127.   
  128.     ' Need to clear the group list
  129.     FormGroup.Clear
  130.   
  131.     ' Need to build a list of form objects in the group
  132.     FormGroup.Append(Form11)
  133.     FormGroup.Append(Form12)
  134.     FormGroup.Append(Form13)
  135.     FormGroup.Append(Form14)
  136.     FormGroup.Append(Form15)
  137.     FormGroup.Append(Form16)
  138.     FormGroup.Append(Form17)
  139.     Show
  140.   End Sub
  141.  
  142. End Type
  143.  
  144. Type Form12 From ProtoForm
  145.   Dim Label2 As New Label
  146.   Dim OptionButton1 As New OptionButton
  147.   Dim OptionButton2 As New OptionButton
  148.   Dim OptionButton3 As New OptionButton
  149. End Type
  150.  
  151. Type Form13 From ProtoForm
  152.   Dim Label2 As New Label
  153.   Dim CheckBox1 As New CheckBox
  154.   Dim CheckBox2 As New CheckBox
  155.   Dim CheckBox3 As New CheckBox
  156. End Type
  157.  
  158. Type Form14 From ProtoForm
  159.   Dim Label2 As New Label
  160.   Dim TextBox1 As New TextBox
  161.   Dim TextBox2 As New TextBox
  162. End Type
  163.  
  164. Type Form15 From ProtoForm
  165.   Dim Label2 As New Label
  166.   Dim ComboBox1 As New ComboBox
  167.   Dim ComboBox2 As New ComboBox
  168. End Type
  169.  
  170. Type Form16 From ProtoForm
  171.   Dim Label2 As New Label
  172.   Dim ScrollBar1 As New ScrollBar
  173.   Dim ScrollBar2 As New ScrollBar
  174. End Type
  175.  
  176. Type Form17 From ProtoForm
  177.   Dim Label2 As New Label
  178.   Dim Frame1 As New Frame
  179.   Dim Gauge1 As New Gauge
  180.   Dim Gauge2 As New Gauge
  181. End Type
  182.  
  183. Begin Code
  184. ' Reconstruction commands for object: ProtoForm
  185. '
  186.   With ProtoForm
  187.     .Caption := "0"
  188.     .Move(6150, 1860, 3600, 4320)
  189.     With .BtnShowNext
  190.       .Caption := "Next"
  191.       .Move(2100, 3300, 1200, 450)
  192.     End With  'ProtoForm.BtnShowNext
  193.     With .BtnShowPrev
  194.       .Caption := "Prev"
  195.       .Move(150, 3300, 1200, 450)
  196.     End With  'ProtoForm.BtnShowPrev
  197.     With .Label1
  198.       .Caption := "Envelop Paging Example"
  199.       .ForeColor := 16711680
  200.       .Move(300, 150, 2850, 300)
  201.       .Alignment := "Center"
  202.     End With  'ProtoForm.Label1
  203.     With .Label3
  204.       .Caption := "Page"
  205.       .Move(900, 2850, 600, 300)
  206.     End With  'ProtoForm.Label3
  207.     With .LblCurrentPageNumber
  208.       .ForeColor := 255
  209.       .Move(1500, 2850, 300, 300)
  210.       .Alignment := "Center"
  211.     End With  'ProtoForm.LblCurrentPageNumber
  212.     With .Label5
  213.       .Caption := "of"
  214.       .Move(1800, 2850, 300, 300)
  215.     End With  'ProtoForm.Label5
  216.     With .LblLastPageNumber
  217.       .ForeColor := 255
  218.       .Move(2100, 2850, 300, 300)
  219.       .Alignment := "Center"
  220.     End With  'ProtoForm.LblLastPageNumber
  221.   End With  'ProtoForm
  222. ' Reconstruction commands for object: NonVisualComponentForm
  223. '
  224.   With NonVisualComponentForm
  225.     .Caption := "Non-Visual Component"
  226.     .Move(3990, 1830, 5265, 4455)
  227.     .SampleDir := "C:\envelop\bootcamp\concepts\novisual\"
  228.     .SampleName := "novisual"
  229.     With .BtnRunDemo
  230.       .Caption := "Run Demo"
  231.       .Move(1050, 3000, 2850, 450)
  232.     End With  'NonVisualComponentForm.BtnRunDemo
  233.     With .Label1
  234.       .Caption := "1. Click Run Demo button to display first form."
  235.       .ForeColor := 16711680
  236.       .Move(300, 300, 4650, 300)
  237.     End With  'NonVisualComponentForm.Label1
  238.     With .Label2
  239.       .Caption := "2. Click Next button to display next form."
  240.       .ForeColor := 16711680
  241.       .Move(300, 900, 4650, 300)
  242.     End With  'NonVisualComponentForm.Label2
  243.     With .Label3
  244.       .Caption := "3. Click Prev button to display previous form."
  245.       .ForeColor := 16711680
  246.       .Move(300, 1500, 4650, 300)
  247.     End With  'NonVisualComponentForm.Label3
  248.     With .helpfile
  249.       .FileName := "C:\envelop\bootcamp\concepts\novisual\novisual.hlp"
  250.     End With  'NonVisualComponentForm.helpfile
  251.   End With  'NonVisualComponentForm
  252. ' Reconstruction commands for object: FormGroup
  253. '
  254.   With FormGroup
  255.   End With  'FormGroup
  256. ' Reconstruction commands for object: Form11
  257. '
  258.   With Form11
  259.     .Caption := "Group Number: 0"
  260.     .Move(6015, 2100, 3600, 4320)
  261.     With .Label2
  262.       .Caption := "This is Form11."
  263.       .Move(300, 900, 1650, 300)
  264.     End With  'Form11.Label2
  265.     With .Button1
  266.       .Caption := "Button1"
  267.       .Move(750, 1350, 1800, 450)
  268.     End With  'Form11.Button1
  269.     With .Button2
  270.       .Caption := "Button2"
  271.       .Move(750, 1950, 1800, 450)
  272.     End With  'Form11.Button2
  273.     With .BtnShowNext
  274.       .Caption := "Next"
  275.       .Move(2100, 3300, 1200, 450)
  276.     End With  'Form11.BtnShowNext
  277.     With .BtnShowPrev
  278.       .Caption := "Prev"
  279.       .Move(150, 3300, 1200, 450)
  280.     End With  'Form11.BtnShowPrev
  281.     With .Label1
  282.       .Caption := "Envelop Paging Example"
  283.       .ForeColor := 16711680
  284.       .Move(300, 150, 2850, 300)
  285.       .Alignment := "Center"
  286.     End With  'Form11.Label1
  287.     With .Label3
  288.       .Caption := "Page"
  289.       .Move(900, 2850, 600, 300)
  290.     End With  'Form11.Label3
  291.     With .LblCurrentPageNumber
  292.       .Caption := "1"
  293.       .ForeColor := 255
  294.       .Move(1500, 2850, 300, 300)
  295.       .Alignment := "Center"
  296.     End With  'Form11.LblCurrentPageNumber
  297.     With .Label5
  298.       .Caption := "of"
  299.       .Move(1800, 2850, 300, 300)
  300.     End With  'Form11.Label5
  301.     With .LblLastPageNumber
  302.       .Caption := "7"
  303.       .ForeColor := 255
  304.       .Move(2100, 2850, 300, 300)
  305.       .Alignment := "Center"
  306.     End With  'Form11.LblLastPageNumber
  307.   End With  'Form11
  308. ' Reconstruction commands for object: Form12
  309. '
  310.   With Form12
  311.     .Caption := "Group Number: 1"
  312.     .Move(6015, 2100, 3600, 4320)
  313.     With .Label2
  314.       .Caption := "This is Form12."
  315.       .Move(300, 900, 2100, 300)
  316.     End With  'Form12.Label2
  317.     With .OptionButton1
  318.       .Caption := "OptionButton1"
  319.       .Move(750, 1350, 1950, 300)
  320.     End With  'Form12.OptionButton1
  321.     With .OptionButton2
  322.       .Caption := "OptionButton2"
  323.       .Move(750, 1800, 1950, 300)
  324.     End With  'Form12.OptionButton2
  325.     With .OptionButton3
  326.       .Caption := "OptionButton3"
  327.       .Move(750, 2250, 1950, 300)
  328.     End With  'Form12.OptionButton3
  329.     With .BtnShowNext
  330.       .Caption := "Next"
  331.       .Move(2100, 3300, 1200, 450)
  332.     End With  'Form12.BtnShowNext
  333.     With .BtnShowPrev
  334.       .Caption := "Prev"
  335.       .Move(150, 3300, 1200, 450)
  336.     End With  'Form12.BtnShowPrev
  337.     With .Label1
  338.       .Caption := "Envelop Paging Example"
  339.       .ForeColor := 16711680
  340.       .Move(300, 150, 2850, 300)
  341.       .Alignment := "Center"
  342.     End With  'Form12.Label1
  343.     With .Label3
  344.       .Caption := "Page"
  345.       .Move(900, 2850, 600, 300)
  346.     End With  'Form12.Label3
  347.     With .LblCurrentPageNumber
  348.       .Caption := "2"
  349.       .ForeColor := 255
  350.       .Move(1500, 2850, 300, 300)
  351.       .Alignment := "Center"
  352.     End With  'Form12.LblCurrentPageNumber
  353.     With .Label5
  354.       .Caption := "of"
  355.       .Move(1800, 2850, 300, 300)
  356.     End With  'Form12.Label5
  357.     With .LblLastPageNumber
  358.       .Caption := "7"
  359.       .ForeColor := 255
  360.       .Move(2100, 2850, 300, 300)
  361.       .Alignment := "Center"
  362.     End With  'Form12.LblLastPageNumber
  363.   End With  'Form12
  364. ' Reconstruction commands for object: Form13
  365. '
  366.   With Form13
  367.     .Caption := "Group Number: 2"
  368.     .Move(6015, 2100, 3600, 4320)
  369.     With .Label2
  370.       .Caption := "This is Form13."
  371.       .Move(300, 900, 2100, 300)
  372.     End With  'Form13.Label2
  373.     With .CheckBox1
  374.       .Caption := "CheckBox1"
  375.       .Move(900, 1350, 1650, 300)
  376.     End With  'Form13.CheckBox1
  377.     With .CheckBox2
  378.       .Caption := "CheckBox2"
  379.       .Move(900, 1800, 1650, 300)
  380.     End With  'Form13.CheckBox2
  381.     With .CheckBox3
  382.       .Caption := "CheckBox3"
  383.       .Move(900, 2250, 1650, 300)
  384.     End With  'Form13.CheckBox3
  385.     With .BtnShowNext
  386.       .Caption := "Next"
  387.       .Move(2100, 3300, 1200, 450)
  388.     End With  'Form13.BtnShowNext
  389.     With .BtnShowPrev
  390.       .Caption := "Prev"
  391.       .Move(150, 3300, 1200, 450)
  392.     End With  'Form13.BtnShowPrev
  393.     With .Label1
  394.       .Caption := "Envelop Paging Example"
  395.       .ForeColor := 16711680
  396.       .Move(300, 150, 2850, 300)
  397.       .Alignment := "Center"
  398.     End With  'Form13.Label1
  399.     With .Label3
  400.       .Caption := "Page"
  401.       .Move(900, 2850, 600, 300)
  402.     End With  'Form13.Label3
  403.     With .LblCurrentPageNumber
  404.       .Caption := "3"
  405.       .ForeColor := 255
  406.       .Move(1500, 2850, 300, 300)
  407.       .Alignment := "Center"
  408.     End With  'Form13.LblCurrentPageNumber
  409.     With .Label5
  410.       .Caption := "of"
  411.       .Move(1800, 2850, 300, 300)
  412.     End With  'Form13.Label5
  413.     With .LblLastPageNumber
  414.       .Caption := "7"
  415.       .ForeColor := 255
  416.       .Move(2100, 2850, 300, 300)
  417.       .Alignment := "Center"
  418.     End With  'Form13.LblLastPageNumber
  419.   End With  'Form13
  420. ' Reconstruction commands for object: Form14
  421. '
  422.   With Form14
  423.     .Caption := "Group Number: 3"
  424.     .Move(6015, 2100, 3600, 4320)
  425.     With .Label2
  426.       .Caption := "This is Form14."
  427.       .Move(300, 900, 2100, 300)
  428.     End With  'Form14.Label2
  429.     With .TextBox1
  430.       .Caption := "TextBox1"
  431.       .Move(450, 1350, 2550, 450)
  432.     End With  'Form14.TextBox1
  433.     With .TextBox2
  434.       .Caption := "TextBox2"
  435.       .Move(450, 1950, 2550, 450)
  436.     End With  'Form14.TextBox2
  437.     With .BtnShowNext
  438.       .Caption := "Next"
  439.       .Move(2100, 3300, 1200, 450)
  440.     End With  'Form14.BtnShowNext
  441.     With .BtnShowPrev
  442.       .Caption := "Prev"
  443.       .Move(150, 3300, 1200, 450)
  444.     End With  'Form14.BtnShowPrev
  445.     With .Label1
  446.       .Caption := "Envelop Paging Example"
  447.       .ForeColor := 16711680
  448.       .Move(300, 150, 2850, 300)
  449.       .Alignment := "Center"
  450.     End With  'Form14.Label1
  451.     With .Label3
  452.       .Caption := "Page"
  453.       .Move(900, 2850, 600, 300)
  454.     End With  'Form14.Label3
  455.     With .LblCurrentPageNumber
  456.       .Caption := "4"
  457.       .ForeColor := 255
  458.       .Move(1500, 2850, 300, 300)
  459.       .Alignment := "Center"
  460.     End With  'Form14.LblCurrentPageNumber
  461.     With .Label5
  462.       .Caption := "of"
  463.       .Move(1800, 2850, 300, 300)
  464.     End With  'Form14.Label5
  465.     With .LblLastPageNumber
  466.       .Caption := "7"
  467.       .ForeColor := 255
  468.       .Move(2100, 2850, 300, 300)
  469.       .Alignment := "Center"
  470.     End With  'Form14.LblLastPageNumber
  471.   End With  'Form14
  472. ' Reconstruction commands for object: Form15
  473. '
  474.   With Form15
  475.     .Caption := "Group Number: 4"
  476.     .Move(6015, 2100, 3600, 4320)
  477.     With .Label2
  478.       .Caption := "This is Form15."
  479.       .Move(300, 900, 1800, 300)
  480.     End With  'Form15.Label2
  481.     With .ComboBox1
  482.       .Move(300, 1350, 2850, 360)
  483.     End With  'Form15.ComboBox1
  484.     With .ComboBox2
  485.       .Move(300, 1950, 2850, 360)
  486.     End With  'Form15.ComboBox2
  487.     With .BtnShowNext
  488.       .Caption := "Next"
  489.       .Move(2100, 3300, 1200, 450)
  490.     End With  'Form15.BtnShowNext
  491.     With .BtnShowPrev
  492.       .Caption := "Prev"
  493.       .Move(150, 3300, 1200, 450)
  494.     End With  'Form15.BtnShowPrev
  495.     With .Label1
  496.       .Caption := "Envelop Paging Example"
  497.       .ForeColor := 16711680
  498.       .Move(300, 150, 2850, 300)
  499.       .Alignment := "Center"
  500.     End With  'Form15.Label1
  501.     With .Label3
  502.       .Caption := "Page"
  503.       .Move(900, 2850, 600, 300)
  504.     End With  'Form15.Label3
  505.     With .LblCurrentPageNumber
  506.       .Caption := "5"
  507.       .ForeColor := 255
  508.       .Move(1500, 2850, 300, 300)
  509.       .Alignment := "Center"
  510.     End With  'Form15.LblCurrentPageNumber
  511.     With .Label5
  512.       .Caption := "of"
  513.       .Move(1800, 2850, 300, 300)
  514.     End With  'Form15.Label5
  515.     With .LblLastPageNumber
  516.       .Caption := "7"
  517.       .ForeColor := 255
  518.       .Move(2100, 2850, 300, 300)
  519.       .Alignment := "Center"
  520.     End With  'Form15.LblLastPageNumber
  521.   End With  'Form15
  522. ' Reconstruction commands for object: Form16
  523. '
  524.   With Form16
  525.     .Caption := "Group Number: 5"
  526.     .Move(6015, 2100, 3600, 4320)
  527.     With .Label2
  528.       .Caption := "This is Form16."
  529.       .Move(300, 900, 2100, 300)
  530.     End With  'Form16.Label2
  531.     With .ScrollBar1
  532.       .Caption := "ScrollBar1"
  533.       .Move(300, 1500, 2835, 300)
  534.       .Orientation := "Horizontal"
  535.       .Move(300, 1500, 2835, 300)
  536.     End With  'Form16.ScrollBar1
  537.     With .ScrollBar2
  538.       .Caption := "ScrollBar2"
  539.       .Move(300, 1950, 2835, 300)
  540.       .Orientation := "Horizontal"
  541.       .Move(300, 1950, 2835, 300)
  542.     End With  'Form16.ScrollBar2
  543.     With .BtnShowNext
  544.       .Caption := "Next"
  545.       .Move(2100, 3300, 1200, 450)
  546.     End With  'Form16.BtnShowNext
  547.     With .BtnShowPrev
  548.       .Caption := "Prev"
  549.       .Move(150, 3300, 1200, 450)
  550.     End With  'Form16.BtnShowPrev
  551.     With .Label1
  552.       .Caption := "Envelop Paging Example"
  553.       .ForeColor := 16711680
  554.       .Move(300, 150, 2850, 300)
  555.       .Alignment := "Center"
  556.     End With  'Form16.Label1
  557.     With .Label3
  558.       .Caption := "Page"
  559.       .Move(900, 2850, 600, 300)
  560.     End With  'Form16.Label3
  561.     With .LblCurrentPageNumber
  562.       .Caption := "6"
  563.       .ForeColor := 255
  564.       .Move(1500, 2850, 300, 300)
  565.       .Alignment := "Center"
  566.     End With  'Form16.LblCurrentPageNumber
  567.     With .Label5
  568.       .Caption := "of"
  569.       .Move(1800, 2850, 300, 300)
  570.     End With  'Form16.Label5
  571.     With .LblLastPageNumber
  572.       .Caption := "7"
  573.       .ForeColor := 255
  574.       .Move(2100, 2850, 300, 300)
  575.       .Alignment := "Center"
  576.     End With  'Form16.LblLastPageNumber
  577.   End With  'Form16
  578. ' Reconstruction commands for object: Form17
  579. '
  580.   With Form17
  581.     .Caption := "Group Number: 6"
  582.     .Move(6015, 2100, 3600, 4320)
  583.     With .Label2
  584.       .Caption := "This is Form17."
  585.       .Move(300, 900, 2100, 300)
  586.     End With  'Form17.Label2
  587.     With .Frame1
  588.       .Caption := "Frame1"
  589.       .Move(300, 1350, 2850, 1200)
  590.     End With  'Form17.Frame1
  591.     With .Gauge1
  592.       .Caption := "Gauge1"
  593.       .Move(2100, 1650, 900, 750)
  594.       .Orientation := "Vertical"
  595.       .Move(2100, 1650, 900, 750)
  596.     End With  'Form17.Gauge1
  597.     With .Gauge2
  598.       .Caption := "Gauge2"
  599.       .Move(1050, 1800, 900, 600)
  600.     End With  'Form17.Gauge2
  601.     With .BtnShowNext
  602.       .Caption := "Next"
  603.       .Move(2100, 3300, 1200, 450)
  604.     End With  'Form17.BtnShowNext
  605.     With .BtnShowPrev
  606.       .Caption := "Prev"
  607.       .Move(150, 3300, 1200, 450)
  608.     End With  'Form17.BtnShowPrev
  609.     With .Label1
  610.       .Caption := "Envelop Paging Example"
  611.       .ForeColor := 16711680
  612.       .Move(300, 150, 2850, 300)
  613.       .Alignment := "Center"
  614.     End With  'Form17.Label1
  615.     With .Label3
  616.       .Caption := "Page"
  617.       .Move(900, 2850, 600, 300)
  618.     End With  'Form17.Label3
  619.     With .LblCurrentPageNumber
  620.       .Caption := "7"
  621.       .ForeColor := 255
  622.       .Move(1500, 2850, 300, 300)
  623.       .Alignment := "Center"
  624.     End With  'Form17.LblCurrentPageNumber
  625.     With .Label5
  626.       .Caption := "of"
  627.       .Move(1800, 2850, 300, 300)
  628.     End With  'Form17.Label5
  629.     With .LblLastPageNumber
  630.       .Caption := "7"
  631.       .ForeColor := 255
  632.       .Move(2100, 2850, 300, 300)
  633.       .Alignment := "Center"
  634.     End With  'Form17.LblLastPageNumber
  635.   End With  'Form17
  636. End Code
  637.