Setting toolbar button style

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

    Setting toolbar button style

    I use application.ena blevisualstyles () and develop using visual studio 1.1.
    I know that changing flatstyle for certain controls will give me xp styles
    on those controls. However, I don't know how to get the xp look and feel
    for toolbar buttons. Mine highlight as I pass over them, but they are not
    3d and do not change shades, as do for example the buttons on the toolbar of
    outlook express. How can I do this?

    Thanks for any help.

    Bernie Yaeger


  • Ken Tucker [MVP]

    #2
    Re: Setting toolbar button style

    Hi,

    I think this is what you are looking for.
    ToolBar1.Appear ance = ToolBarAppearan ce.Flat

    Ken
    -------------------
    "Bernie Yaeger" <berniey@cherwe llinc.com> wrote in message
    news:eb2SOBZsDH A.556@TK2MSFTNG P11.phx.gbl...[color=blue]
    > I use application.ena blevisualstyles () and develop using visual studio[/color]
    1.1.[color=blue]
    > I know that changing flatstyle for certain controls will give me xp styles
    > on those controls. However, I don't know how to get the xp look and feel
    > for toolbar buttons. Mine highlight as I pass over them, but they are not
    > 3d and do not change shades, as do for example the buttons on the toolbar[/color]
    of[color=blue]
    > outlook express. How can I do this?
    >
    > Thanks for any help.
    >
    > Bernie Yaeger
    >
    >[/color]


    Comment

    • Ken Tucker [MVP]

      #3
      Re: Setting toolbar button style

      Hi,

      I think this is what you are looking for.
      ToolBar1.Appear ance = ToolBarAppearan ce.Flat

      Ken
      -------------------
      "Bernie Yaeger" <berniey@cherwe llinc.com> wrote in message
      news:eb2SOBZsDH A.556@TK2MSFTNG P11.phx.gbl...[color=blue]
      > I use application.ena blevisualstyles () and develop using visual studio[/color]
      1.1.[color=blue]
      > I know that changing flatstyle for certain controls will give me xp styles
      > on those controls. However, I don't know how to get the xp look and feel
      > for toolbar buttons. Mine highlight as I pass over them, but they are not
      > 3d and do not change shades, as do for example the buttons on the toolbar[/color]
      of[color=blue]
      > outlook express. How can I do this?
      >
      > Thanks for any help.
      >
      > Bernie Yaeger
      >
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Setting toolbar button style

        * "Bernie Yaeger" <berniey@cherwe llinc.com> scripsit:[color=blue]
        > I use application.ena blevisualstyles () and develop using visual studio 1.1.
        > I know that changing flatstyle for certain controls will give me xp styles
        > on those controls. However, I don't know how to get the xp look and feel
        > for toolbar buttons. Mine highlight as I pass over them, but they are not
        > 3d and do not change shades, as do for example the buttons on the toolbar of
        > outlook express. How can I do this?[/color]

        As Ken said, play around with the control's 'Appearance' property. In
        addition, call 'Application.Do Events' directly after calling
        'Application.En ableVisualStyle s' in order to fix a bug which causes
        toolbar icons to disappear.

        --
        Herfried K. Wagner [MVP]
        <http://www.mvps.org/dotnet>

        Comment

        • Bernie Yaeger

          #5
          Re: Setting toolbar button style

          Hi Ken,

          Tx - what I really wanted you gave me direction to: toolbar1.appear ance =
          toolbarappearan ce.normal; flat is evidently the default.

          Thanks again,

          Bernie

          "Ken Tucker [MVP]" <vb2ae@bellsout h.net> wrote in message
          news:OspqrfasDH A.684@TK2MSFTNG P09.phx.gbl...[color=blue]
          > Hi,
          >
          > I think this is what you are looking for.
          > ToolBar1.Appear ance = ToolBarAppearan ce.Flat
          >
          > Ken
          > -------------------
          > "Bernie Yaeger" <berniey@cherwe llinc.com> wrote in message
          > news:eb2SOBZsDH A.556@TK2MSFTNG P11.phx.gbl...[color=green]
          > > I use application.ena blevisualstyles () and develop using visual studio[/color]
          > 1.1.[color=green]
          > > I know that changing flatstyle for certain controls will give me xp[/color][/color]
          styles[color=blue][color=green]
          > > on those controls. However, I don't know how to get the xp look and[/color][/color]
          feel[color=blue][color=green]
          > > for toolbar buttons. Mine highlight as I pass over them, but they are[/color][/color]
          not[color=blue][color=green]
          > > 3d and do not change shades, as do for example the buttons on the[/color][/color]
          toolbar[color=blue]
          > of[color=green]
          > > outlook express. How can I do this?
          > >
          > > Thanks for any help.
          > >
          > > Bernie Yaeger
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Bernie Yaeger

            #6
            Re: Setting toolbar button style

            Thanks Herfried,

            As always, you put me in the right direction - and, yes, I do avoid the bug
            with application doevents. Tx again.

            Bernie

            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
            news:utuhaybsDH A.1996@TK2MSFTN GP09.phx.gbl...[color=blue]
            > * "Bernie Yaeger" <berniey@cherwe llinc.com> scripsit:[color=green]
            > > I use application.ena blevisualstyles () and develop using visual studio[/color][/color]
            1.1.[color=blue][color=green]
            > > I know that changing flatstyle for certain controls will give me xp[/color][/color]
            styles[color=blue][color=green]
            > > on those controls. However, I don't know how to get the xp look and[/color][/color]
            feel[color=blue][color=green]
            > > for toolbar buttons. Mine highlight as I pass over them, but they are[/color][/color]
            not[color=blue][color=green]
            > > 3d and do not change shades, as do for example the buttons on the[/color][/color]
            toolbar of[color=blue][color=green]
            > > outlook express. How can I do this?[/color]
            >
            > As Ken said, play around with the control's 'Appearance' property. In
            > addition, call 'Application.Do Events' directly after calling
            > 'Application.En ableVisualStyle s' in order to fix a bug which causes
            > toolbar icons to disappear.
            >
            > --
            > Herfried K. Wagner [MVP]
            > <http://www.mvps.org/dotnet>[/color]


            Comment

            Working...