Professional Documents
Culture Documents
Penulis
Selamat Datang
BiodataBiodata Saya
KeahlianKeahlian Saya
FotoFoto Saya
Catatan:
Jangan menyisipkan spasi setelah teks:
“Biodata”, “Keahlian”, “Foto” yang
pertama.
1.11.Tujuan Simbol
Simbol-simbol dalam footnote yang digunakan
di atas barulah sebagian kecil simbol yang Anda
gunakan untuk membuat file Help. Berikut ini
penjelasan fungsi atau tujuan simbol-simbol
yang telah digunakan di atas.
Simbol Fungsi
$ Menentukan judul topik yang
nantinya akan digunakan dalam
“Topics Found” (pencarian topik)
pada dialog “Help Contents”.
# Nama ID (identifikasi) dari Topik
yang sedang dikerjakan.
Textbox Nilai
Left 198
Top 197
Width 648
Height 599
Catatan:
Nilai di atas tidak bersifat absolut. Anda
boleh menggantinya sesuai selera Anda.
2.3. Tampilan
Mengambang (Pop-
Up)
Anda sudah bisa membuat link, dan
menampilkan suatu topik saat link tersebut
Catatan:
Jika Anda tidak mengubah style dari judul
topik ini, maka pada tampilan
mengambang dari jendela Help hanya
akan menampilkan judul dari topik saja
(isi judul tidak akan ditampilkan).
SetPopupColor(255,0,255)
Catatan:
(255,0,0) pada makro di atas
menunjukkan definisi warna dalam
RGB Anda dapat mengganti angka-
angka dengan batasan antara 0 sampai
255. Contoh (35,123,9), dan
sebagainya.
{Button, Nama_Tombol,
[Perintah]}
Parameter Keterangan
Button Identifikasi kontrol
Nama_Tombol Teks yang ditampilkan
pada tombol
Perintah Perintah/Makro yang akan
dijalankan
Contoh:
Makro Keterangan
JumpId( Memanggil ID suatu
[NamaFile> topik tertentu.
Nama Teks
Keterangan
textbox masukan
Title Halaman Anda bebas untuk
Nama
Teks masukan
textbox
Title Biodata Saya
Topic ID Biodata
Help file Help4.hlp
Window type main
Index Caption
0 /
1 +
2 x
3 -
4 =
1 Option Explicit
8 Private Sub _
cmdCancel_Click()
9 On Error Resume Next
94 Private Sub _
cmdPercent_Click()
95 On Error Resume Next
96 lblDisplay = _
lblDisplay / 100
97 AkhirMasukan = "OPS"
98 JnOperator = "%"
99 NumOps = NumOps + 1
100 DecimalFlag = True
101 End Sub
1 Option Explicit
4 Public Para()
5 Sub LihatPara()
6 Dim a, b, Perintah$
7 ReDim Para(0)
8 Perintah$ = Command
9 If Right(App.Path, 1) <> _
"\" Then
10 Para(0) = App.Path & "\" & _
App.EXEName
11 Else
12 Para(0) = App.Path & _
App.EXEName
13 End If
14 Perintah$ = _
Trim(Perintah) + " "
15 Do
16 a = InStr( _
Perintah, " ")
17 If a <= 1 Then Exit Do
18 b = b + 1
19 ReDim Preserve Para(b)
20 Para(b) = Left( _
Perintah, a - 1)
21 Perintah = _
LTrim(Mid(Perintah, a + 1))
24 Sub LakukanAksi( _
Optional Perintah, _
25 Optional Isi)
26 On Error Resume Next
27 If IsMissing(Perintah) Then
WinExec "Winhelp.exe" & _
28 App.Path & "\Calc.hlp", 1
29 Exit Sub
30 End If
31 Select Case UCase( _
Perintah)
32 Case "WAV"
33 Select Case Isi
34 Case 1: frmCalc.Show
35 mciExecute "Play " & _
App.Path & "\SUARA.WAV"
End Select
36 Case "AVI"
37 Select Case Isi
38 Case 1: frmCalc.Show
39 mciExecute "Play " & _
App.Path & _
"\FILEMOVE.AVI"
40 End Select
41 Case "LIHAT": frmCalc.Show
42 End Select
43 End Sub
44 Sub Main()
45 LihatPara
Calculator
Membuat Index
Klik tab “Index”, pada dialog yang ditampilkan,
pastikan option terpilih pada “Create a new
index file”. Klik OK. Namai file Index dengan
“Index”.
Mengkompilasi Project
Langkah terakhir tentunya adalah
mengkompilasi project agar Anda dapat melihat
hasil akhirnya. Klik menu FileCompile…
untuk mengkompilasi project Anda. Saat
ditampilkan dialog “Create a compiled file”,
tandai checkbox “Automatically display
compiled help file when done” agar program
langsung menampilkan jendela Help setelah
proses kompilasi selesai.
<HTML>
<HTML>
<HEAD>
<META http-equiv="Content-Type"
content="text/HTML; charset=windows-
1252">
<TITLE>Keahlian</TITLE>
<STYLE Type="text/css">
TD {Border : Thin Groove}
A:link {text-decoration: none;
color: #000099}
A:visited {text-decoration: none;
color: #000099}
A:hover {text-decoration: none;
color: #CC0000}
A:active {text-decoration: none;
<HTML>
<HEAD>
<META http-equiv="Content-Type"
content="text/HTML; charset=windows-
1252"><TITLE>Pengalaman</TITLE>
<STYLE Type="text/css">
TD {Border : Thin Groove}
A:link {text-decoration: none;
color: #000099}
A:visited {text-decoration: none;
color: #000099}
A:hover {text-decoration: none;
color: #CC0000}
A:active {text-decoration: none;
color: #000099}
Pengaturan Terakhir
Klik tab “Project”, klik tombol “Change project
option” . Pada tab “General”, ketikkan judul
untuk HTML Help Anda pada textbox “Title”,
misalnya: “HTML Saya”. Ubah “Default file:”
menjadi: “HTML\biodata.htm”.