Results 1 to 7 of 7

Thread: How do I get this look?

  1. #1

    Thread Starter
    Lively Member Cagez's Avatar
    Join Date
    Oct 2002
    Posts
    121

    How do I get this look?

    See the look of the menu's? I like it, but how do I make my program look like that? Is is possible in VB?
    Attached Images Attached Images  

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. 'change menu back color to white
    2. Private Enum MENUINFO_STYLES
    3.     MNS_NOCHECK = &H80000000
    4.     MNS_MODELESS = &H40000000
    5.     MNS_DRAGDROP = &H20000000
    6.     MNS_AUTODISMISS = &H10000000
    7.     MNS_NOTIFYBYPOS = &H8000000
    8.     MNS_CHECKORBMP = &H4000000
    9. End Enum
    10.  
    11. Private Enum MENUINFO_MASKS
    12.     MIM_MAXHEIGHT = &H1
    13.     MIM_BACKGROUND = &H2
    14.     MIM_HELPID = &H4
    15.     MIM_MENUDATA = &H8
    16.     MIM_STYLE = &H10
    17.     MIM_APPLYTOSUBMENUS = &H80000000
    18. End Enum
    19.  
    20. Private Type MENUINFO
    21.     cbSize As Long
    22.     fMask As MENUINFO_MASKS
    23.     dwStyle As MENUINFO_STYLES
    24.     cyMax As Long
    25.     hbrBack As Long
    26.     dwContextHelpID As Long
    27.     dwMenuData As Long
    28. End Type
    29.  
    30. Private Declare Function GetMenuInfo Lib "user32" (ByVal hMenu As Long, mi As MENUINFO) As Long
    31. Private Declare Function SetMenuInfo Lib "user32" (ByVal hMenu As Long, mi As MENUINFO) As Long
    32. Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
    33. Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
    34.  
    35. Private Sub Form_Load()
    36.    Dim MyMenu As MENUINFO
    37.    MyMenu.cbSize = Len(MyMenu)
    38.    MyMenu.fMask = MIM_BACKGROUND Or MIM_APPLYTOSUBMENUS
    39.    MyMenu.hbrBack = CreateSolidBrush(vbWhite)
    40.    SetMenuInfo GetMenu(Me.hwnd), MyMenu
    41. End Sub
    Add Bitmaps to Menu items

  3. #3
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    there's a dll called somthing like SmartMenuXP
    which will give your apps XP style menus

  4. #4
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Originally posted by DeadEyes
    there's a dll called somthing like SmartMenuXP
    which will give your apps XP style menus
    Which would be this here http://www.vbsmart.com/library/smart...martmenuxp.htm




  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    There's a few third party activex controls which'll give you this effect I think I right in saying there's one for download at vbaccelerator.com...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Well done Tom, I'm far too lazy to go looking up links for people

  7. #7
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Originally posted by DeadEyes
    Well done Tom, I'm far too lazy to go looking up links for people

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width