Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
4.1 KiB

  1. VERSION 5.00
  2. Begin VB.PropertyPage ppgBrowser
  3. Caption = "Internet Explorer"
  4. ClientHeight = 3600
  5. ClientLeft = 0
  6. ClientTop = 0
  7. ClientWidth = 4800
  8. PaletteMode = 0 'Halftone
  9. ScaleHeight = 3600
  10. ScaleWidth = 4800
  11. Begin VB.TextBox txtURL
  12. Height = 375
  13. Left = 120
  14. TabIndex = 1
  15. Top = 1080
  16. Width = 4455
  17. End
  18. Begin VB.Label Label1
  19. Caption = "Enter a new URL to display in the result pane:"
  20. Height = 375
  21. Left = 240
  22. TabIndex = 0
  23. Top = 360
  24. Width = 4095
  25. End
  26. End
  27. Attribute VB_Name = "ppgBrowser"
  28. Attribute VB_GlobalNameSpace = False
  29. Attribute VB_Creatable = True
  30. Attribute VB_PredeclaredId = False
  31. Attribute VB_Exposed = True
  32. ' ===========================================================================
  33. ' | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF |
  34. ' | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
  35. ' | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A |
  36. ' | PARTICULAR PURPOSE. |
  37. ' | Copyright (c) 1998-1999 Microsoft Corporation |
  38. ' ===========================================================================
  39. Option Explicit
  40. ' Variable to hold a reference to the scope item for which this page displays
  41. ' properties
  42. Dim m_ScopeItem As ScopeItem
  43. Dim m_szCurrentURL As String
  44. ' =============================================================================
  45. ' Method: PropertyPage_ApplyChanges
  46. ' Type: Event
  47. ' Description: Called when the user clicks the OK or Appply button on the
  48. ' property sheet
  49. '
  50. ' Parameters: None
  51. ' Output: None
  52. ' Notes: This property page notifies the snap-in of the
  53. ' changes by calling ScopeItem.PropertyChanged. Calling this
  54. ' method generates the ScopeItems_PropertyChanged event in the
  55. ' snap-in.
  56. ' =============================================================================
  57. Private Sub PropertyPage_ApplyChanges()
  58. ' Only send the new URL if it is new. The user can keep the property sheet
  59. ' open and continue switching URLs to use the node as primitive browser.
  60. If txtURL.Text <> m_szCurrentURL Then
  61. m_ScopeItem.PropertyChanged txtURL.Text
  62. m_szCurrentURL = txtURL.Text
  63. End If
  64. End Sub
  65. ' =============================================================================
  66. ' Method: PropertyPage_SelectionChanged
  67. ' Type: Event
  68. ' Description: Called when the property sheet passes the object(s) for which
  69. ' it is being displayed to the property page.
  70. ' Parameters: None
  71. ' Output: None
  72. ' Notes: Unlike a UserControl property page, SelectedControls(0) will
  73. ' contain the ScopeItems and/or ListItems for which the property sheet
  74. ' is being displayed. Changes can be made directly to an item's
  75. ' properties. The property page can notify the snap-in of the
  76. ' changes by calling ScopeItem.PropertyChanged or
  77. ' MMCListItem.PropertyChanged. Calling these methods will
  78. ' generate the ScopeItems_PropertyChanged or
  79. ' ResultViews_PropertyChanged event in the snap-in.
  80. ' =============================================================================
  81. Private Sub PropertyPage_SelectionChanged()
  82. Set m_ScopeItem = SelectedControls(0)
  83. End Sub
  84. ' =============================================================================
  85. ' Method: txtURL_Change
  86. ' Type: Event
  87. ' Description: Called when the user types in the URL text box
  88. '
  89. ' Parameters: None
  90. ' Output: None
  91. ' Notes: Set Changed to enable the Apply button.
  92. ' =============================================================================
  93. Private Sub txtURL_Change()
  94. Changed = True
  95. End Sub