• 0

How to Customize A Title Bar in VB6?


Question

There are 6 style title bars that can be chosen in VB6, but all of them are full of unpleasant traditional manner, such as ugly MaxButton and MinButton. Now the question is how to customize MaxButton or other into what I'm fond of? For instance, want that MaxButton becomes a football-shaped image... and even change shape of the title bar, put a picture into the title bar... How to deal with?

Link to comment
https://www.neowin.net/forum/topic/35064-how-to-customize-a-title-bar-in-vb6/
Share on other sites

11 answers to this question

Recommended Posts

  • 0
  Quote
Originally posted by JZolloXP

You would have to change the form property to 0 (None) and design your own title bar with your own graphics,

Yes, buddy. It's a way out.

Seems just one thing has to deal with. This form with "None" borderstyle can't be resized with mouse, though adding code such as "WindowState" to resize the form. How to settle this prob?

  • 0

You could subclass the form and do all your own non-client painting. With subclassing, you intercept messages sent to your program and have a custom message loop to deal with the ones you want. It can be a pain to do, but it's powerful.

some online resources...

http://www.softcircuits.com/sw_vbsrc.htm

http://www.arcatapet.com/vb.html

http://planetsourcecode.com/vb/Tutorial/de...lt.asp?lngWid=1

http://www.vbsquare.com/api/subcls/

http://vbaccelerator.com/

http://www.allapi.net/

and a book...

http://www.oreilly.com/catalog/subhookvb/

  • 0
  Quote
Originally posted by weenur

You could subclass the form and do all your own non-client painting. With subclassing, you intercept messages sent to your program and have a custom message loop to deal with the ones you want. It can be a pain to do, but it's powerful.

.............

Sounds like having to cleanse the Augean stables. But thanks for replying, buddy.

  • 0
  Quote
Originally posted by Dave888

Seems just one thing has to deal with. This form with "None" borderstyle can't be resized with mouse, though adding code such as "WindowState" to resize the form. How to settle this prob?

  Quote
Originally posted by weenur

You could subclass the form and do all your own non-client painting. With subclassing, you intercept messages sent to your program and have a custom message loop to deal with the ones you want. It can be a pain to do, but it's powerful.

For fearing of the complication of method that you introduced above, i try to seek for another way to work out. Now, buddy, i've found a way easy as pie to change size of a form without border (borderstyle = 0) in VB6.

The approach just uses HScroll or VScrollBar, make its value equal to the form width or height; typing codes in H/VScroll_Change(); and all things will be okay!

The little prob is that the form seems not very handsome and users would feel somewhat inconvenient.

Buddy, i know you are a veteran in programming, your comment is quite often significant for me.

  • 0
  Quote
Originally posted by freeza

i usually set VB to show no titlebar then create my own :)

Good idea!

Would you like to introduce a little of how you let users to resize your form without titlebar, please?

(Note: minimizing, maximizing and being vbnormal

form are very simple, what I mean is to resize form as user's wish)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Have a ton of the Beach Boys on USB that I play while cruising in the car in my avatar.  Good times music. Very sad to hear of his passing. 😪
    • Haha, that didn't take long. On the bright side, that one is a fix for more issues...we'll see if anything major pops-up in the coming weeks.
    • Something like this https://www.neowin.net/news/wi...ashes-when-launching-games/ you mean?
    • Valerion StreamMaster Plus2 4K Dolby Vision gaming projector is $300 off with promo coupon by Sayan Sen If you are in the market for a premium projector, you should have a look at the Valerion StreamMaster Plus2 4K Gaming Projector. The product is designed primarily for gaming and multimedia use and promises an excellent "smoother streaming experience" compared to other projectors in its class. The projector supports "true" 4K Ultra HD, which should provide clear images for detailed gaming environments and media playback. The brightness level of 2000 lumens intends to make the device usable in various ambient lighting conditions, from dim gaming rooms to brighter living areas. And in terms of audio, it packs an S/PDIF for digital audio out. The key technical specifications of the Valerion StreamMaster Plus2 4K Gaming Projector are given below: Brightness: 2000 ISO Lumens Light Source: RGB triple laser Contrast Ratio: 10000:1 with EBL Mode (EBL = enhanced black level) Color Gamut: 110% Rec.2020 Throw Ratio: Fixed 1.2:1 (supports screen sizes up to 300 inches) Dynamic Tone Mapping: Enabled HDR and 3D Support: Supports IMAX Enhanced, Dolby Vision, HDR10+, Active 3D, Filmmaker Mode Google TV OS AI-SoC MT9618, 4 GB RAM and 128 GB ROM Input Lag: 4ms at 1080P@240Hz, 8ms at 1080P@120Hz, 15ms at 4K@60Hz Wi-Fi 6e, Bluetooth 5.2 Typically, it is listed at $1999. However, the projector is currently available for $1699, thanks to a special promo code, making it an attractive option for those looking to upgrade their gaming or home cinema setup. Get it at the link below: StreamMaster Plus2 4K Gaming Projector - 300" IMAX Enhanced Home Theater, 3D & Dolby Vision, HDR10+: $1999 + $300 off with promo code "VALERION" at checkout => $1699.00 (Shipped by Amazon, Sold by Valerion) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Yeah you are reading different article. Does your article talk about Elon's big dong and has video him naked by any chance? I think the problem is you are commenting on the wrong tab you are actually viewing. Sorry the Telsa you buy is not the same product these robotaxi's will be. WTF? Funny how you didn't even reply to Steven's comment here. Thanks for playing but you are getting all worked up and saying ###### you wouldn't to anyone's face so we are done.
  • Recent Achievements

    • Apprentice
      Cole Multipass went up a rank
      Apprentice
    • Posting Machine
      David Uzondu earned a badge
      Posting Machine
    • One Month Later
      Stokenking earned a badge
      One Month Later
    • One Month Later
      Kevin Jones earned a badge
      One Month Later
    • Week One Done
      Kevin Jones earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      535
    2. 2
      ATLien_0
      263
    3. 3
      +Edouard
      195
    4. 4
      +FloatingFatMan
      184
    5. 5
      snowy owl
      135
  • Tell a friend

    Love Neowin? Tell a friend!