Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

With an animated,faded switch button

So i wanted to create a flat switch
The components of switch to be
-the switch
-the background
-the border

default size of switch is 13,33
when it's on the switch it's located at 0, it's blue and at location 19 start the background
[Image: FCImg25.png]
and when it's off the switch it's located at 13 and it's red ... from 0 to 13 it's the background ..

all the things so far was successful made ... BUT here come the hard part ...
I want to make an animation ... when the switch it's on and you press it to go smooth, slow(not too slow) down and in the same time to change its color to red slowly ..

AND i did some of that BUT every time i press the switch .. the timer runs but the paint not ... i must move my mouse fast over the switch to see diferences ... i don't know how to explain that but the best way to understand it's to download the component and see what's happends

REMENBER: the size must be 13,33 !
http://www.fileshare.ro/e30763633
First i want to thanks you for all you have been posted.

This was my first button/switch created with graphics so i didn't know so much about it ... i usually use what i know and what i have to reach what i want instead of search for another methods but i always learn when i found somethings that i like ...

then ... i want to show u an image with what i wanted to reach
[Image: vP753Sf.gif]
this is made by me too so .. u don't wanna see what's behind .... :D lot of code ... but this is not made with graphics and because of that i got some bugs when trying to active 2 buttons in the same time and another bug is i got that border in the middle of the switch ... ( with boder size 0 )

Your code was really small besides mine and u did it very simple and objective but you miss some of the design :D
[Image: xfpcBE2.png]
just saying ... :-"

Anyway thanks for the code i learned lot of stuff from it and with some edit i can make it like i wanted :D and i will leave that animation ... after i realize it's hard to make it.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by LeonieHackPetaBytes2Jan 23, 2019 05:10 PM 1 227 Jan 23, 2019 05:10 PM
Last Post: 0xDEAD10CC
[.NET] by gigajewJan 24, 2017 12:11 PM 5 351 Jan 24, 2017 12:11 PM
Last Post: Ninja
[.NET] by polas6May 18, 2014 05:15 AM 0 128 May 18, 2014 05:15 AM
Last Post: polas6