|
-
Aug 31st, 2000, 04:56 AM
#1
Thread Starter
PowerPoster
I would like some help on creating shaped command buttons?
Thanks
Amitabh
-
Aug 31st, 2000, 05:31 AM
#2
Hyperactive Member
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
-
Aug 31st, 2000, 06:10 AM
#3
transcendental analytic
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.
-
Aug 31st, 2000, 06:38 AM
#4
_______
<?>
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
-
Aug 31st, 2000, 06:54 AM
#5
transcendental analytic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|