skip to main
|
skip to sidebar
home
FORUM
File
Total Kategori
Kategori
*Application By ARBI Blog's
(9)
*Dasar Visual Basic
(2)
CommandButton
(2)
Context Menu
(2)
File
(2)
Folder
(2)
Form
(23)
Keyboard
(2)
Label
(4)
ListBox
(2)
ListView
(3)
Menu
(1)
Mouse
(2)
MS.EXCEL
(3)
Registry
(2)
String
(1)
Textbox
(10)
TreeView
(1)
Windows XP
(5)
Show All Kategory
Archive
►
2012
(1)
►
Januari
(1)
►
2011
(11)
►
November
(2)
►
September
(1)
►
Juni
(1)
►
Maret
(4)
►
Februari
(3)
►
2010
(5)
►
Oktober
(2)
►
September
(2)
►
Februari
(1)
▼
2009
(59)
►
Desember
(1)
▼
November
(33)
Memeriksa Apakah Mouse Terinstall
Memasukkan Gambar Pada ImageList
Cara Mendapatkan Kode ASCII Keyboard
Keyascii Codes
tes
3D Text In Label
Gradient BackColor Label
Animasi Form Load & Unload (Explode \ Implode Effect)
Gradient Forms (Using API)
Gradient Forms
3D Form
Menampilkan Form Dalam Form
Mendeteksi Form Sedang Di Load Atau Tidak
Unload Semua Form
Gradient TitleBar Form
Membuat TitleBar
Menggerakan Form Tanpa TitleBar
Menampilkan Dan Menyembunyikan TitleBar Form
Flash Title Bar
Menambahkan Minimize Button
Menonaktifkan Tombol X pada Form
Form Tidak Dapat Di Close
Lock Move Form
Center Caption Form
Transparent Forms
Merubah Ukuran Form Menjadi Full Screen
Align Right Menu
Menambahkan New Menu Pada System Form
Mendapatkan Drive System
Minimize Semua Jendela Window
Mendapatkan Nama Komputer
Mendapatkan Username Yg Aktif
Membuat Multi Directory
►
Oktober
(14)
►
September
(11)
Recent Comments
Blogroll
Materi Kuliah Api
Contoh Aplikatif : Word and Excell Generator
16 tahun yang lalu
DevPage
VB Helper: Tips, Tricks, & Example Programs for Visual Basic Developers
VBTown - Visual Basic Tutorial
Member
Jumat, 06 November 2009
Align Right Menu
PERSIAPAN
NO
CONTROL
ITEM
KETERANGAN
1.
Menu
1
1 menu 2 suibmenu
Masukkan souce ini ke dalam Form :
Private Sub Form_Load() Dim MnuInfo As MENUITEMINFO mnuH& = GetMenu(Me.hwnd) MnuInfo.cbSize = Len(MnuInfo) MnuInfo.fMask = MIIM_TYPE 'If you want to align to right only few menus, and leave the rest in left side, 'Replace the '0' below and the '0' two lines above the 'End Sub' with the number 'of menus you want to leave in the left side. myTemp& = GetMenuItemInfo(mnuH&, 0, True, MnuInfo) MnuInfo.fType = MFT_RIGHTJUSTIFY Or MFT_STRING 'Replace all 'MenuCaption' below with the caption of the first menu from left. MnuInfo.cch = Len("MenuCaption") MnuInfo.dwTypeData = "MenuCaption" MnuInfo.cbSize = Len(MnuInfo) myTemp& = SetMenuItemInfo(mnuH&, 0, True, MnuInfo) myTemp& = DrawMenuBar(Me.hwnd) End Sub
Masukkan souce ini ke dalam orm :
Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long Declare Function GetMenuItemInfo Lib "user32" Alias "GetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal b As Boolean, lpMenuItemInfo As MENUITEMINFO) As Long Declare Function SetMenuItemInfo Lib "user32" Alias "SetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Boolean, lpcMenuItemInfo As MENUITEMINFO) As Long Public Const MIIM_TYPE = &H10 Public Const MFT_RIGHTJUSTIFY = &H4000 Public Const MFT_STRING = &H0& Type MENUITEMINFO cbSize As Long fMask As Long fType As Long fState As Long wID As Long hSubMenu As Long hbmpChecked As Long hbmpUnchecked As Long dwItemData As Long dwTypeData As String cch As Long End Type
0 komentar:
Posting Komentar
Posting Lebih Baru
Posting Lama
Beranda
Langganan:
Posting Komentar (Atom)
Logo
Sumbangan
Yahoo! Messager
Jimmy
Facebook
Jimmy
Pasang Link Banner :
Kumpulan Source VB
VISITOR
View shoutbox
About Me
Abe Kaz
rieb
---
| Registry Blog |
| FORUM |
------------------ Jangan lupa kasih Komentar yah ------------------
| Yahoo!Messager |
| Facebook |
---
0 komentar:
Posting Komentar