Announcement

Collapse
No announcement yet.

PB/Forms button color other than gray

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PB/Forms button color other than gray

    I need to understand how to provide a PB/Forms button color (background primarily) to something other than gray. I do understand I have to use something other than the standard button class to do that, but I don't understand anything at all about the general theory nor the specifics of how to make a new button object which will allow me to change the button color.

    Are there forum entries or urls or documents that explain the theory and the specifics?

    Hopefully.

    Paul N.

  • #2
    You could try IMAGEBUTTON or IMAGEBUTTONX.
    Alternatively you could use a label with the %SS_NOTIFY style as a work around or temporary solution. With a little creativity with the styles you can make it look and act very similar to a button.

    Rod
    Rod
    I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

    Comment


    • #3
      Deleted to avoid unnecessary BS & confusion. Sorry.
      Last edited by StanHelton; 23 Mar 2008, 12:15 PM. Reason: Incorrect information in post.
      Do not go quiet into that good night,
      ... Rage, rage against the dark.

      Comment


      • #4
        Maybe this will help with IMGBUTTONX 's

        www.jcfuller.com/txt2bmpbut.zip

        James

        Comment


        • #5
          Originally posted by StanHelton View Post
          I have been using a checkbox with the %PUSHLIKE style.
          What do you mean?
          I just tried that but only with XP theming i see a small blue colored border (i used blue).

          With theming off i get the ordinary button colors.

          ??
          hellobasic

          Comment


          • #6
            Custom Control button code available here:
            http://www.reonis.com/POFFS/rrbutton.zip

            Source code heavily commented by Borje.
            Rgds, Dave

            Comment


            • #7
              Originally posted by Edwin Knoppert View Post
              What do you mean?
              I just tried that but only with XP theming i see a small blue colored border (i used blue).

              With theming off i get the ordinary button colors.

              ??

              DUH. I must have been asleep when I posted that. Never mind.
              Do not go quiet into that good night,
              ... Rage, rage against the dark.

              Comment


              • #8
                Can do ownerdrawn to change the color:

                http://www.powerbasic.com/support/pb...ad.php?t=24308

                http://www.powerbasic.com/support/pb...ad.php?t=10595
                Adam Drake
                PowerBASIC

                Comment

                Working...
                X