LAMPIRAN 1 Kode Program Menu Awal

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub cmdAboutMe_Click() frmAboutMe.Show frmMenuUtama.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub cmdPemakaianHuruf_Click() frmPemakaianHuruf.Show frmMenuUtama.Hide End Sub frmPemakaianTandaBaca.Show frmMenuUtama.Hide End Sub Private Sub cmdPenulisanKata_Click() frmPenulisanKata.Show frmMenuUtama.Hide End Sub Private Sub cmdPenulisanUnsurSerapan_Click() frmMenuUtama.Hide frmPenulisanUnsurSerapan.Show End Sub Private Sub Form_Load() Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION End Sub

  

Private Declare Function GetWindowLong Lib "user32" Alias

"GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As

Long

Private Declare Function SetWindowLong Lib "user32" Alias

"SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long,

ByVal dwNewLong As Long) As Long

Private Declare Function SetLayeredWindowAttributes Lib

"user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha

As Byte, ByVal dwFlags As Long) As Long

Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd

As Long, ByVal bRevert As Long) As Long

Private Declare Function GetMenuItemCount Lib "user32" (ByVal

hMenu As Long) As Long

Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu

As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long

  

Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd

As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal

y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As

Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub Form_Load() Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION End Sub Private Sub cmdHome_Click() frmMenuUtama.Show frmPemakaianTandaBaca.Hide End Sub Private Sub cmdKeluar_Click()

pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?",

vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub cmdTandaElipsis_Click() frmPemakaianTandaBaca.Hide frmTandaElipsis.Show End Sub Private Sub cmdTandaGarisMiring_Click() frmPemakaianTandaBaca.Hide frmTandaGarisMiring.Show End Sub Private Sub cmdTandaHubung_Click() frmPemakaianTandaBaca.Hide frmTandaHubung.Show End Sub Private Sub cmdTandaKoma_Click() frmPemakaianTandaBaca.Hide frmTandaKoma.Show End Sub

   frmPemakaianTandaBaca.Hide frmTandaKurung.Show End Sub Private Sub cmdTandaKurungSiku_Click() frmPemakaianTandaBaca.Hide frmTandaKurungSiku.Show End Sub Private Sub cmdTandaPenyingkatAtauApostrof_Click() frmApostrof.Show frmPemakaianTandaBaca.Hide End Sub Private Sub cmdTandaPetik_Click() frmPemakaianTandaBaca.Hide frmTandaPetik.Show End Sub Private Sub cmdTandaPetikTunggal_Click() frmPemakaianTandaBaca.Hide frmTandaPetikTunggal.Show End Sub Private Sub cmdTandaPisah_Click() frmPemakaianTandaBaca.Hide frmTandaPisah.Show End Sub Private Sub cmdTandaSeru_Click() frmPemakaianTandaBaca.Hide frmTandaSeru.Show End Sub Private Sub cmdTandaTanya_Click() frmPemakaianTandaBaca.Hide frmTandaTanya.Show End Sub Private Sub cmdTandaTitik_Click() frmPemakaianTandaBaca.Hide frmTandaTitik.Show End Sub

   frmPemakaianTandaBaca.Hide frmTandaTitikDua.Show End Sub Private Sub cmdTandaTitikKoma_Click() frmPemakaianTandaBaca.Hide frmTandaTitikKoma.Show End Sub

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const MF_BYPOSITION = &H400&

  Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION End Sub Private Sub cmdGabunganHurufKonsonan_Click() frmGabunganHurufKonsonan.Show frmPemakaianHuruf.Hide End Sub Private Sub cmdHurufAbjad_Click() frmHurufAbjad.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdHurufDiftong_Click() frmHurufDiftong.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdHurufKapital_Click() frmHurufKapital.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdHurufKonsonan_Click() frmHurufKonsonan.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdHurufMiring_Click() frmHurufMiring.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdHurufTebal_Click() frmHurufTebal.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub frmHurufVokal.Show frmPemakaianHuruf.Hide frmMenuUtama.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub Command2_Click() frmMenuUtama.Show frmPemakaianHuruf.Hide End Sub

  ! " #

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal

  Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub Form_Load() 'menonaktifkan ikon Close' Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION 'Cari Data' Me.Caption = App.Title InitConnection PopData (strtxtCari) End Sub Private Sub cmdBersihkan_Click() txtCari = "" txtKataSerapan = "" txtKataAsing = "" txtKeterangan = "" txtCari.SetFocus End Sub Private Sub cmdHome_Click() frmMenuUtama.Show frmPenulisanUnsurSerapan.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub listView_ItemClick(ByVal Item As MSComctlLib.ListItem) Dim intSelItem As Integer intSelItem = Item listView.LabelEdit = lvwManual txtKataSerapan.Text

  = listView.ListItems(intSelItem).ListSubItems(1).Text txtKataAsing.Text

  = listView.ListItems(intSelItem).ListSubItems(2).Text txtKeterangan.Text

  = listView.ListItems(intSelItem).ListSubItems(3).Text listView.ListItems(intSelItem).ListSubItems(4).Text End Sub Private Sub InitConnection() Dim conDBString As String conDBString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\UnsurSerapan.mdb" Set gAdoConn = New ADODB.Connection gAdoConn.ConnectionString = conDBString gAdoConn.Open End Sub Private Sub PopData(strtxtCari As String) Dim lstX As ListItem Dim strSQL As String Dim rs As ADODB.Recordset Dim intCounter As Integer If strtxtCari = "" Then

  • strSQL = "select from UnsurSerapan order by KataSerapan ASC" Else strSQL = "Select * from UnsurSerapan KataSerapan " & _ "where KataSerapan like '%" & strtxtCari & "%' order by KataSerapan asc" End If

  Set rs = New ADODB.Recordset rs.Open strSQL, gAdoConn, 3, 1 listView.ListItems.Clear With rs If .RecordCount > 0 Then .MoveFirst intCounter = 1 While Not .EOF Set lstX = listView.ListItems.Add(, , intCounter) lstX.ListSubItems.Add = Trim(!KataSerapan) lstX.ListSubItems.Add = Trim(!KataAsing) lstX.ListSubItems.Add = Trim(!Keterangan) lstX.ListSubItems.Add = Trim(!Id) intCounter = intCounter + 1 .MoveNext Wend

  End With End Sub Private Sub txtCari_Change() PopData (txtCari.Text) End Sub

  $ %

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub Form_Load() Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION End Sub frmBentukUlang.Show frmPenulisanKata.Hide End Sub Private Sub cmdBilanganAngka_Click() frmPenulisanKata.Hide frmAngkadanBilangan.Show End Sub Private Sub cmdGabunganKata_Click() frmGabunganKata.Show frmPenulisanKata.Hide End Sub Private Sub cmdHome_Click() frmPenulisanKata.Hide frmMenuUtama.Show End Sub Private Sub cmdKataDasar_Click() frmKataDasar.Show frmPenulisanKata.Hide End Sub Private Sub cmdKataDepan_Click() frmPenulisanKata.Hide frmKataDepan.Show End Sub Private Sub cmdKataGanti_Click() frmKataGanti.Show frmPenulisanKata.Hide End Sub Private Sub cmdKataTurunan_Click() frmKataTurunan.Show frmPenulisanKata.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub

frmPenulisanKata.Hide frmPartikel.Show End Sub Private Sub cmdSingkatanKata_Click() frmPenulisanKata.Hide frmSingkatandanAkronim.Show End Sub Private Sub cmdSiSang_Click() frmKataSidanSang.Show frmPenulisanKata.Hide End Sub Private Sub cmdSukuKata_Click() frmSukuKata.Show frmPenulisanKata.Hide End Sub

  & %

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long

  As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub Form_Load() Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION End Sub Private Sub Button1_Click() frmTandaTitik.Hide frmSingkatandanAkronim.Show End Sub Private Sub Button2_Click() frmTandaTitik.Hide frmSingkatandanAkronim.Show End Sub Private Sub cmdHome_Click() frmMenuUtama.Show frmTandaTitik.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub cmdPrev_Click() frmPemakaianTandaBaca.Show frmTandaTitik.Hide End Sub Private Sub Label102_Click() frmTandaTitik.Hide frmSingkatandanAkronim.Show End Sub

  ' ()

  Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long Private Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const MF_BYPOSITION = &H400& Private Sub Form_Load() 'menonaktifkan ikon Close' Dim hMenu As Long hMenu = GetSystemMenu(Me.hwnd, False) DeleteMenu hMenu, 6, MF_BYPOSITION 'Koneksi Database ke DataGrid' On Error Resume Next Adodc1.ConnectionString

  = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\novri\My Documents\my TA pictures\task\Tugas Akhir\Tugas Akhir Real\Abjad.mdb;Persist Security Info=False" Adodc1.RecordSource = "select*from HurufAbjad" Set DataGrid1.DataSource = Adodc1 End Sub frmMenuUtama.Show frmHurufAbjad.Hide End Sub Private Sub cmdKeluar_Click() pesan = MsgBox("Terima Kasih... Apakah Anda Yakin?", vbInformation + vbYesNo, "Perhatian") If pesan = vbYes Then End End Sub Private Sub cmdPreviewS_Click() frmPemakaianHuruf.Show frmHurufAbjad.Hide End Sub