Custom Command Button of Irregular Shape & of Different Color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunil borwankar
    New Member
    • Nov 2006
    • 2

    #1

    Custom Command Button of Irregular Shape & of Different Color

    I am trying hard to make Custom Command Buttons of Irregular Shape and of Different colours in Active X Interface Wizard but am not successful. Irregular Shape Buttons i.e.; Triangular, Arrow Shape and Hexagonal are made and are responding in click event but I am not able to provide colors to them. I used Window API programming also but buttons are not getting colored. Kindly help.
    I am calling Window API "gdi 32" in Modules and Putting Shapes, colors etc in Active X Component but am not able to color buttons.

    Thanks
    Sunil Borwankar
  • LacrosseB0ss
    New Member
    • Oct 2006
    • 112

    #2
    This probably isn't the BEST way to do it and I don't really know what you're trying to do but a cheater would do the following:

    Create a shape object on your form. Make it whatever shape and colour you would like. Then use the Shape1_Click() method in code to call it. This should work. I vaguely remember doing it once before.

    Hope this works/helps
    - LB

    Comment

    • sunil borwankar
      New Member
      • Nov 2006
      • 2

      #3
      Originally posted by LacrosseBoss
      This probably isn't the BEST way to do it and I don't really know what you're trying to do but a cheater would do the following:

      Create a shape object on your form. Make it whatever shape and colour you would like. Then use the Shape1_Click() method in code to call it. This should work. I vaguely remember doing it once before.

      Hope this works/helps
      - LB
      Sir,
      Shape provides only Square, Rectangle, Circle or Elips, where as I want Triangular, Hexagonal and Arrow Shape, Colored Command Buttons.
      Shall I get help in this regard?
      -SB

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by sunil borwankar
        Sir,
        Shape provides only Square, Rectangle, Circle or Elips, where as I want Triangular, Hexagonal and Arrow Shape, Colored Command Buttons.
        Shall I get help in this regard?
        -SB
        You might try these links (just found, not investigated).. .
        And please, let us know how things turn out.

        Comment

        • Tony will
          New Member
          • Jan 2007
          • 1

          #5
          Dear Friend
          I want to generate "Arrow shaped botton" in Java Applet .
          It seems you already made it , Could you please provide code to me !

          Regards

          Tony

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by Tony will
            I want to generate "Arrow shaped botton" in Java Applet .
            It seems you already made it , Could you please provide code to me !
            Given that this is in the Visual Basic forum, I doubt that the source would be written in Java.

            Comment

            Working...