home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / vbasic / Data / Utils / ahtmlle2.exe / MAINDIR / General.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-08-09  |  8.6 KB  |  261 lines

  1. VERSION 5.00
  2. Object = "{E4D5D928-FD35-4D0A-92CD-F3CE02D68455}#1.0#0"; "ahtmlle2.ocx"
  3. Begin VB.Form frmGeneral 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "HTMLLabel Control General Demonstration"
  6.    ClientHeight    =   8295
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   9105
  10.    BeginProperty Font 
  11.       Name            =   "Tahoma"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   400
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    Icon            =   "General.frx":0000
  20.    LinkTopic       =   "Form1"
  21.    MaxButton       =   0   'False
  22.    MinButton       =   0   'False
  23.    ScaleHeight     =   553
  24.    ScaleMode       =   3  'Pixel
  25.    ScaleWidth      =   607
  26.    StartUpPosition =   2  'CenterScreen
  27.    Begin HTMLCtlsLEDemo.pucColorButton btnColor 
  28.       Height          =   375
  29.       Index           =   0
  30.       Left            =   4770
  31.       TabIndex        =   8
  32.       ToolTipText     =   "BackColor"
  33.       Top             =   3915
  34.       Width           =   1275
  35.       _ExtentX        =   2249
  36.       _ExtentY        =   661
  37.    End
  38.    Begin VB.ComboBox cboBackStyle 
  39.       Height          =   315
  40.       ItemData        =   "General.frx":014A
  41.       Left            =   4770
  42.       List            =   "General.frx":0154
  43.       Style           =   2  'Dropdown List
  44.       TabIndex        =   7
  45.       Top             =   3420
  46.       Width           =   3255
  47.    End
  48.    Begin VB.ComboBox cboBorderStyle 
  49.       Height          =   315
  50.       ItemData        =   "General.frx":0181
  51.       Left            =   4725
  52.       List            =   "General.frx":01AF
  53.       Style           =   2  'Dropdown List
  54.       TabIndex        =   5
  55.       Top             =   2700
  56.       Width           =   3300
  57.    End
  58.    Begin VB.TextBox txtText 
  59.       Height          =   3120
  60.       Left            =   225
  61.       MultiLine       =   -1  'True
  62.       ScrollBars      =   2  'Vertical
  63.       TabIndex        =   2
  64.       Text            =   "General.frx":02D8
  65.       Top             =   2700
  66.       Width           =   4335
  67.    End
  68.    Begin HTMLCtlsLEDemo.pucEventList evlDemo 
  69.       Height          =   1950
  70.       Left            =   225
  71.       TabIndex        =   4
  72.       Top             =   6075
  73.       Width           =   8655
  74.       _ExtentX        =   15266
  75.       _ExtentY        =   3440
  76.       ExitVisible     =   -1  'True
  77.    End
  78.    Begin HTMLCtlsLE.HTMLLabel hbxDemo 
  79.       Height          =   1320
  80.       Left            =   225
  81.       TabIndex        =   0
  82.       Top             =   945
  83.       Width           =   8700
  84.       _ExtentX        =   15346
  85.       _ExtentY        =   2328
  86.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  87.          Name            =   "Tahoma"
  88.          Size            =   8.25
  89.          Charset         =   0
  90.          Weight          =   400
  91.          Underline       =   0   'False
  92.          Italic          =   0   'False
  93.          Strikethrough   =   0   'False
  94.       EndProperty
  95.       BorderStyle     =   1
  96.       BackColor       =   -2147483643
  97.       ForeColor       =   -2147483640
  98.       Text            =   ""
  99.    End
  100.    Begin HTMLCtlsLEDemo.pucColorButton btnColor 
  101.       Height          =   375
  102.       Index           =   1
  103.       Left            =   6210
  104.       TabIndex        =   9
  105.       ToolTipText     =   "ForeColor"
  106.       Top             =   3915
  107.       Width           =   1275
  108.       _ExtentX        =   2249
  109.       _ExtentY        =   661
  110.    End
  111.    Begin HTMLCtlsLEDemo.pucColorButton btnColor 
  112.       Height          =   375
  113.       Index           =   2
  114.       Left            =   4770
  115.       TabIndex        =   10
  116.       ToolTipText     =   "AnchorColor"
  117.       Top             =   4410
  118.       Width           =   1275
  119.       _ExtentX        =   2249
  120.       _ExtentY        =   661
  121.    End
  122.    Begin HTMLCtlsLEDemo.pucColorButton btnColor 
  123.       Height          =   375
  124.       Index           =   3
  125.       Left            =   6210
  126.       TabIndex        =   11
  127.       ToolTipText     =   "AnchorVisitedColor"
  128.       Top             =   4410
  129.       Width           =   1275
  130.       _ExtentX        =   2249
  131.       _ExtentY        =   661
  132.    End
  133.    Begin VB.Label lblHdr 
  134.       AutoSize        =   -1  'True
  135.       Caption         =   "Bac&kStyle:"
  136.       Height          =   195
  137.       Index           =   2
  138.       Left            =   4770
  139.       TabIndex        =   6
  140.       Top             =   3195
  141.       Width           =   750
  142.    End
  143.    Begin VB.Label lblHdr 
  144.       AutoSize        =   -1  'True
  145.       Caption         =   "&BorderStyle:"
  146.       Height          =   195
  147.       Index           =   1
  148.       Left            =   4725
  149.       TabIndex        =   3
  150.       Top             =   2475
  151.       Width           =   900
  152.    End
  153.    Begin VB.Shape shpProofOfTransparency 
  154.       DrawMode        =   2  'Blackness
  155.       FillStyle       =   7  'Diagonal Cross
  156.       Height          =   1590
  157.       Left            =   3960
  158.       Top             =   810
  159.       Width           =   1230
  160.    End
  161.    Begin VB.Label lblHdr 
  162.       AutoSize        =   -1  'True
  163.       Caption         =   "&Text:"
  164.       Height          =   195
  165.       Index           =   0
  166.       Left            =   225
  167.       TabIndex        =   1
  168.       Top             =   2475
  169.       Width           =   390
  170.    End
  171.    Begin HTMLCtlsLEDemo.pucLogoPane pucLogoPane1 
  172.       Align           =   1  'Align Top
  173.       Height          =   750
  174.       Left            =   0
  175.       Top             =   0
  176.       Width           =   9105
  177.       _ExtentX        =   16060
  178.       _ExtentY        =   1323
  179.       Picture         =   "General.frx":046D
  180.    End
  181. Attribute VB_Name = "frmGeneral"
  182. Attribute VB_GlobalNameSpace = False
  183. Attribute VB_Creatable = False
  184. Attribute VB_PredeclaredId = True
  185. Attribute VB_Exposed = False
  186. Option Explicit
  187. Private Sub btnColor_Change(Index As Integer, Color As stdole.OLE_COLOR)
  188.     With hbxDemo
  189.         Select Case Index
  190.             Case 0: .BackColor = Color
  191.             Case 1: .ForeColor = Color
  192.             Case 2: .AnchorColor = Color
  193.             Case 3: .AnchorVisitedColor = Color
  194.         End Select
  195.     End With
  196. End Sub
  197. Private Sub cboBackStyle_Click()
  198.     hbxDemo.BackStyle = cboBackStyle.ListIndex
  199. End Sub
  200. Private Sub cboBorderStyle_Click()
  201.     hbxDemo.BorderStyle = cboBorderStyle.ListIndex
  202. End Sub
  203. Private Sub evlDemo_ExitClicked()
  204.     Unload Me
  205. End Sub
  206. Private Sub Form_Load()
  207.     With hbxDemo
  208.         cboBackStyle.ListIndex = .BackStyle
  209.         cboBorderStyle.ListIndex = .BorderStyle
  210.         btnColor(0).Color = .BackColor
  211.         btnColor(1).Color = .ForeColor
  212.         btnColor(2).Color = .AnchorColor
  213.         btnColor(3).Color = .AnchorVisitedColor
  214.     End With
  215.     txtText_Change
  216. End Sub
  217. Private Sub hbxDemo_AfterRender()
  218.     evlDemo.Add "AfterRender"
  219. End Sub
  220. Private Sub hbxDemo_AnchorDefined(ByVal Id As Long, ByVal hRef As String, ByVal Left As Long, ByVal Top As Long, ByVal Width As Long, ByVal Height As Long)
  221.     evlDemo.Add "AnchorDefined", Id, hRef
  222. End Sub
  223. Private Sub hbxDemo_Change(ByVal Text As String)
  224.     evlDemo.Add "Change", Text
  225. End Sub
  226. Private Sub hbxDemo_Click()
  227.     evlDemo.Add "Click"
  228. End Sub
  229. Private Sub hbxDemo_DblClick()
  230.     evlDemo.Add "DblClick"
  231. End Sub
  232. Private Sub hbxDemo_AnchorClick(ByVal AnchorId As Long, ByVal hRef As String)
  233.     evlDemo.Add "AnchorClick", AnchorId, hRef
  234. End Sub
  235. Private Sub hbxDemo_AnchorMouseEnter(ByVal AnchorId As Long, ByVal hRef As String)
  236.     evlDemo.Add "AnchorMouseEnter", AnchorId, hRef
  237. End Sub
  238. Private Sub hbxDemo_AnchorMouseExit(ByVal AnchorId As Long, ByVal hRef As String)
  239.     evlDemo.Add "AnchorMouseExit", AnchorId, hRef
  240. End Sub
  241. Private Sub hbxDemo_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  242.     evlDemo.Add "MouseDown", Button, Shift, X, Y
  243. End Sub
  244. Private Sub hbxDemo_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  245.     evlDemo.Add "MouseUp", Button, Shift, X, Y
  246. End Sub
  247. Private Sub hbxDemo_UnknownParameter(ByVal Tag As String, ByVal Parameter As String, ByVal Value As String)
  248.     evlDemo.Add "UnknownParameter", Tag, Parameter, Value
  249. End Sub
  250. Private Sub hbxDemo_UnknownTag(ByVal Tag As String, ByVal Parameters As String)
  251.     evlDemo.Add "UnknownTag", Tag, Parameters
  252. End Sub
  253. Private Sub pgrDemo_PropertyChanged(ByVal PropertyName As String, ByVal Value As Variant)
  254.     If PropertyName = "Text" Then
  255.         txtText.Text = Value
  256.     End If
  257. End Sub
  258. Private Sub txtText_Change()
  259.     hbxDemo.Text = txtText.Text
  260. End Sub
  261.