Results 1 to 5 of 5

Thread: Odd shaped command Buttons

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Exclamation

    I would like some help on creating shaped command buttons?

    Thanks
    Amitabh

  2. #2
    Hyperactive Member WP's Avatar
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    278

    Wink

    When you set the style propertie of the command button on 1 and insert a picture, there will be a picture on the commandbutton

    WP

    Visual Basic 6.0 EE SP5 / .Net
    Windows XP

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You could download the transparent picturebox control from my homepage, you just need to draw the different states (mouse down, mouseup and mouseover) and then choose a maskcolor for the transparent areas
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    or just do a walk around
    Open some paint programa and make a picture with let's
    say for simplicity sake a white background. Put an image control on your form and set it's border to nothing. Use white as your form's backcolor. Put your code in the click
    event and you have any shape your can make as a command button. Obviously it takes up a little more space as pictures are square but the appearance is that of any shape as the backgrounds are similar.

    Wayne
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Yeah, that's another way you could do it, but when you click outside the shape, but still inside the rect, the button is, you'll click the button.

    By cutting out the regions which is the areas with the specified color, the maskcolor, you won't hit the button, but instead rise the click event on the form
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width