Custom Buttons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    Custom Buttons

    Hi All,
    I have 3 images stored which are to imitate a button. One for Normal,
    one for Depressed and another for Highlighted.

    The 'Normal' button is placed on the form.
    The Mousedown event changes the button to 'Depressed'
    The MouseUp event changes the button to 'Normal'

    How can I change the button to 'Highlighted when the mouse is over the
    image? I could use the mouseOver event to change this but when I move the
    mouse from being over the image, it is still highlighted!!!


    Could anyone offer me any ideas on how to achieve this?


    TIA

    Mark


  • Keith Wilby

    #2
    Re: Custom Buttons

    "Mark" <mark.reed75@nt lworld.com> wrote in message
    news:qJzPf.7368 4$0N1.54738@new sfe5-win.ntli.net...[color=blue]
    > Hi All,
    > I have 3 images stored which are to imitate a button. One for Normal,
    > one for Depressed and another for Highlighted.
    >
    > The 'Normal' button is placed on the form.
    > The Mousedown event changes the button to 'Depressed'
    > The MouseUp event changes the button to 'Normal'
    >
    > How can I change the button to 'Highlighted when the mouse is over the
    > image? I could use the mouseOver event to change this but when I move the
    > mouse from being over the image, it is still highlighted!!!
    >[/color]

    Just a hunch but have you tried undoing the highlighting in the form's
    background mouse-over event?

    Keith.



    Comment

    • Mark

      #3
      Re: Custom Buttons

      LOL how stupid do feel?

      Thanks Keith,

      Mark

      "Keith Wilby" <here@there.com > wrote in message
      news:440ee354$1 _1@glkas0286.gr eenlnk.net...[color=blue]
      > "Mark" <mark.reed75@nt lworld.com> wrote in message
      > news:qJzPf.7368 4$0N1.54738@new sfe5-win.ntli.net...[color=green]
      >> Hi All,
      >> I have 3 images stored which are to imitate a button. One for Normal,
      >> one for Depressed and another for Highlighted.
      >>
      >> The 'Normal' button is placed on the form.
      >> The Mousedown event changes the button to 'Depressed'
      >> The MouseUp event changes the button to 'Normal'
      >>
      >> How can I change the button to 'Highlighted when the mouse is over the
      >> image? I could use the mouseOver event to change this but when I move the
      >> mouse from being over the image, it is still highlighted!!!
      >>[/color]
      >
      > Just a hunch but have you tried undoing the highlighting in the form's
      > background mouse-over event?
      >
      > Keith.
      > www.keithwilby.com
      >[/color]


      Comment

      • Keith Wilby

        #4
        Re: Custom Buttons

        "Mark" <mark.reed75@nt lworld.com> wrote in message
        news:lHGPf.6274 9$Fy4.17229@new sfe4-win.ntli.net...[color=blue]
        > LOL how stupid do feel?
        >
        > Thanks Keith,
        >
        > Mark
        >[/color]

        We all have those days Mark, glad to help.

        :-)


        Comment

        • Lauren Wilson

          #5
          Re: Re: Custom Buttons

          On Wed, 8 Mar 2006 14:10:21 -0000, "Keith Wilby" <here@there.com >
          wrote:
          [color=blue]
          >"Mark" <mark.reed75@nt lworld.com> wrote in message
          >news:qJzPf.736 84$0N1.54738@ne wsfe5-win.ntli.net...[color=green]
          >> Hi All,
          >> I have 3 images stored which are to imitate a button. One for Normal,
          >> one for Depressed and another for Highlighted.
          >>
          >> The 'Normal' button is placed on the form.
          >> The Mousedown event changes the button to 'Depressed'
          >> The MouseUp event changes the button to 'Normal'
          >>
          >> How can I change the button to 'Highlighted when the mouse is over the
          >> image? I could use the mouseOver event to change this but when I move the
          >> mouse from being over the image, it is still highlighted!!!
          >>[/color]
          >
          >Just a hunch but have you tried undoing the highlighting in the form's
          >background mouse-over event?[/color]

          Interesting comment Keith. I'm embarrassed to admit that I missed
          this somehow. When you say, "undoing the highlighting in the form's
          background mouse-over event", do you mean there is a global setting we
          can make via VBA code? If so, please let me know what it is -- or
          just elaborate a bit on how your suggestion can be implemented.

          Thanks for sharing,

          -- LW

          Comment

          • Mark

            #6
            Re: Re: Custom Buttons

            Lauren,

            I used the forms MouseMove event to set the image's source to normal.
            This works perfectly on a small form where I am only trying to change the
            one image. I have tried it on a larger form where I have several buttons I
            am trying to change back to default but I have noticed something of a
            flicker on the screen!!!

            Hope this helps,

            Mark

            "Lauren Wilson" <nospam@nospam. com> wrote in message
            news:aqh3121jpp 26j3ag64cgqd7vt jhtjqrr4m@4ax.c om...[color=blue]
            > On Wed, 8 Mar 2006 14:10:21 -0000, "Keith Wilby" <here@there.com >
            > wrote:
            >[color=green]
            >>"Mark" <mark.reed75@nt lworld.com> wrote in message
            >>news:qJzPf.73 684$0N1.54738@n ewsfe5-win.ntli.net...[color=darkred]
            >>> Hi All,
            >>> I have 3 images stored which are to imitate a button. One for Normal,
            >>> one for Depressed and another for Highlighted.
            >>>
            >>> The 'Normal' button is placed on the form.
            >>> The Mousedown event changes the button to 'Depressed'
            >>> The MouseUp event changes the button to 'Normal'
            >>>
            >>> How can I change the button to 'Highlighted when the mouse is over the
            >>> image? I could use the mouseOver event to change this but when I move
            >>> the
            >>> mouse from being over the image, it is still highlighted!!!
            >>>[/color]
            >>
            >>Just a hunch but have you tried undoing the highlighting in the form's
            >>background mouse-over event?[/color]
            >
            > Interesting comment Keith. I'm embarrassed to admit that I missed
            > this somehow. When you say, "undoing the highlighting in the form's
            > background mouse-over event", do you mean there is a global setting we
            > can make via VBA code? If so, please let me know what it is -- or
            > just elaborate a bit on how your suggestion can be implemented.
            >
            > Thanks for sharing,
            >
            > -- LW[/color]


            Comment

            Working...