XP-style button on VB6 form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pravesh Koirala
    New Member
    • Aug 2007
    • 1

    XP-style button on VB6 form

    The Button that glows orange when mouse moved over it
    Also i wanna include it in message box
    Please help
  • slapshock
    New Member
    • Oct 2006
    • 57

    #2
    download the jewelbutton.ocx in the internet...that is the component that u wanted....
    then after downloading, add it to your components in vb6.0

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by slapshock
      download the jewelbutton.ocx in the internet...that is the component that u wanted....
      then after downloading, add it to your components in vb6.0
      Of course, you could just do it yourself by watching the MouseMove event. Turn on the "glow" when the mouse moves over the button, turn it off as soon as you detect the mouse outside of the button.

      Comment

      • vinci
        New Member
        • Aug 2006
        • 62

        #4
        Originally posted by Killer42
        Of course, you could just do it yourself by watching the MouseMove event. Turn on the "glow" when the mouse moves over the button, turn it off as soon as you detect the mouse outside of the button.
        but isnt it that buttons in VB6 are not that graphical.. what i mean is that they are colored gray.. it is like buttons from windows 98... i think wat he want is to have buttons the same as windows XP does...

        if it is posible in VB6 to accomplish it thru code, could u show me how?

        tnx killer42...

        Comment

        • pureenhanoi
          New Member
          • Mar 2007
          • 175

          #5
          Originally posted by slapshock
          download the jewelbutton.ocx in the internet...that is the component that u wanted....
          then after downloading, add it to your components in vb6.0
          Look at this thread http://www.thescripts.com/forum/thread693872.html.There may have some helpfull

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by pureenhanoi
            Look at this thread ...
            Thanks. I was thinking of suggesting that, but couldn't remember where it was. Duh! It's not even a week since I put it in the Articles area, and already I forgot it was there. :(

            I should point out that while I edited the post about using manifest when I copied it to the articles area, I haven't tried out the idea. I'll be curious to find out a bit more about it.

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              Correction to an earlier post in this thread. You can change the look of a button in VB6 if you first set the Style property to "1 - Graphical". Then you can change the colour, the picture normally displayed, and the picture displayed while the button is "down".

              Note, it looks as though Style can only be set at design time.

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Here's a little sample. Just add this frm file to a new project. (Don't forget to set it as the startup object).

                The reason for the "If ... End If" logic is that the original code, which just set the colour every time the event was triggered, made the button flicker in a bit of an ugly way.
                Attached Files

                Comment

                • Ali Rizwan
                  Banned
                  Contributor
                  • Aug 2007
                  • 931

                  #9
                  Originally posted by Killer42
                  Here's a little sample. Just add this frm file to a new project. (Don't forget to set it as the startup object).

                  The reason for the "If ... End If" logic is that the original code, which just set the colour every time the event was triggered, made the button flicker in a bit of an ugly way.
                  Killer what is this this ll not sute you this is like kiddy.

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    Originally posted by Ali Rizwan
                    Killer what is this this ll not sute you this is like kiddy.
                    Um... what? I didn't understand that.

                    Comment

                    Working...