View Poll Results: What do you think of the example?

Voters
9. You may not vote on this poll
  • Helpful and useful

    4 44.44%
  • Good code to have for my collection

    2 22.22%
  • Eh, I might keep it

    2 22.22%
  • Doesn't really interest me

    1 11.11%
Results 1 to 5 of 5

Thread: Custom Title Bar

  1. #1
    Matthew Gates
    Guest
    Hey all, I made this little example for you. It's a custom title bar that looks pretty real, as some of you wanted to add a custom button with the _[]X buttons, this example shows you how to do it, well imitate and manipulate it, just shows you what a little API can do .

    Download the file below and see the example.
    Hope it helps you all in future projects.

    And also, I'm putting a little poll up to see what you think of it.
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Oct 2000
    Location
    Earth
    Posts
    32
    thanx mathew very nice...

  3. #3
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Very cool and Very Simple! Mad Props to the future GURU!
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  4. #4
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    Matthew,

    Code looks good, I would only change one thing - add a Sub to remove the focus from the checkboxes.

    Code:
    Private Sub Remove_Focus()
          Text1.SetFocus
    End Sub
    Then place it like such:

    Code:
    Private Sub Check1_Click()
        If Check1.Value = vbChecked Then
            Check1.Value = vbUnchecked
            DoEvents
            Call Remove_Focus
            Me.WindowState = vbMinimized
        End If
    End Sub
    The buttons look a little funky with the dotted focus rectangle in them.

    P.S. How to change the color of the titlebar?
    Donald Sy - VB (ab)user

  5. #5
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Very Nice Matthew. Will use in the future.

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