Results 1 to 3 of 3

Thread: Making custom menubar...

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Post

    Does anybody know how to make your own custom menu bar such as seen in qbasic. When you create a text file in DOS mode then you get a nice looking blue colour text editor. There is flat menubar. I want to make my own menubar so I can customize colour, backcolour, etc,..
    Does anybody know how to make it from scratch.
    Baaaaaaaaah

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    There's at least 2 ways to do it:

    #1: Use a custom ActiveX control.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    #2:

    • Set all of the menus into ownerdraw using the ModifyMenu API
    • Use SetWindowLong to subclass the form and catch the WM_DRAW message.
    • Draw the menu using GDI tools.


    Sample (hopefully, you can understand it):
    Attached Files Attached Files


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

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