Mac OS Style Button Tutorial

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
8 posts Page 1 of 1
Contributors
User avatar
secretpker
Dedicated Member
Dedicated Member
Posts: 68
Joined: Sat Oct 30, 2010 11:07 pm

Mac OS Style Button Tutorial
secretpker
[==========---------- Mac OS Style Button Tutorial ----------==========]
[* = Required] [Difficult Level: 1] [Difficult Levels: 1 = Easy 2 = Meduim 3 = Hard]
[*Download Mac OS Image Buttons Link: http://www.mediafire.com/?pn9aa40tcu4ltn3 ] [Winrar Needed]

First you will need to add 1 button. Name it what ever you want to name it. Then set the size to 75; 23, after that you go to properties then resources and click Add Resource > Add Existing File. Now go and select desktop and click all of the Mac OS Style Button image, then you make the button1's flat style to Flat after you do that you are going to click the plus sign were it says FlatApperance. Change button1's border size to 0 and change the mousedownbackcolor and mouseoverbackcolor to transparent. Also change the button1's Backcolor to transparent. Click on the backgroundimage of button1's then import _1button image. Then add events: Mousedown, MouseEnter, MouseLeave, and MouseUp. For the code for MouseDown is
Code: Select all
button1.backgroundimage = my.resources._1button_click
For MouseEnter is
Code: Select all
button1.backgroundimage = my.resources._1button_hover
For MouseLeave is
Code: Select all
button1.backgroundimage = my.resources._1button
and for MouseUp is
Code: Select all
button1.backgroundimage = my.resources._1button_hover
Then debug it and enjoy.
Image
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Mac OS Style Button Tutorial
Agust1337
this isn't really a tutorial. What I would call a tutorial is when you make a custom control, but good anyways cooll;
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
User avatar
code it
VIP - Site Partner
VIP - Site Partner
Posts: 821
Joined: Sun Oct 10, 2010 3:02 pm

Re: Mac OS Style Button Tutorial
code it
Thats great :D cooll; !
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Mac OS Style Button Tutorial
Usman55
Good for people who don't know how to make their button look better than the simple picturebox button.
Image
User avatar
Skillful
Skillful Coders
Skillful Coders
Posts: 969
Joined: Tue Nov 16, 2010 10:07 am

Re: Mac OS Style Button Tutorial
Skillful
Great tut mate!!
Instead of LOL use this -
LSIBMHBIWFETALOL

Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Mac OS Style Button Tutorial
zachman61
Good Tutorial :D
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
un kn0 wn
VIP - Donator
VIP - Donator
Posts: 269
Joined: Mon Mar 29, 2010 6:12 pm

Re: Mac OS Style Button Tutorial
un kn0 wn
Nice tutorial :)
User avatar
Matanthebest1
Just Registered
Just Registered
Posts: 1
Joined: Sat Feb 02, 2013 3:02 pm

Ty man , nice tut clapper; wahooo; lmao;
8 posts Page 1 of 1
Return to “Tutorials”