Results 1 to 3 of 3

Thread: Caption Gradiator III / VB6 Form Gradient Titlebar

  1. #1
    New Member
    Join Date
    Feb 12
    Posts
    8

    Caption Gradiator III / VB6 Form Gradient Titlebar

    Hello,

    Caption Gradiator III is a Basic Module that facilitates a custom gradient color titlebar for Visual Basic forms. The original program came from another VB author's web sight. The code was bloated and had several bugs including the failure to repaint area around the form control box buttons. The original author's approach to fixing the bugs was to tie the process to a sub class timer thereby increasing the bloat. My approach was to use better logic and less code. I learned from the original code as opposed to copying the code. The changes I made were significant and I have no problem with calling this my own program. The process is called from the Form_Load event and cancelled in the Form_Unload event as illustrated in the form code in the project.

    Enjoy,
    OldRon, aka servowizard
    Attached Files Attached Files

  2. #2
    Fanatic Member
    Join Date
    Mar 09
    Posts
    719

    Re: Caption Gradiator III / VB6 Form Gradient Titlebar

    Works fine until you minimize the form, crashes VB when you restore.
    Fixed it by exiting the Paint_Gradient routine if the Forms' WindowState = vbMinimized

  3. #3
    New Member
    Join Date
    Feb 12
    Posts
    8

    Re: Caption Gradiator III / VB6 Form Gradient Titlebar

    Hello,

    MAKE EXE!

    VB don't like you messin' with it's kids.

    Ron

Posting Permissions

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