Results 1 to 3 of 3

Thread: sliding affect in a form something like in winamp

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32

    Lightbulb sliding affect in a form something like in winamp

    Hello All

    I want to implement in my project the sliding affect ,,,,, its hard to explain but will try my best.

    I want to show a small panel in the beginning with different buttons on it and when a button is clicked a form sliding from behind the panel comes .... for example if the panel's width is one inch than after clicking the button a form lets say of width 5 inches slides from the panel towards left or right and is displayed .... something like winamp that when you minimize the playlist you still see a panel there and when you maximize it the panel is extended ...

    I wish i can get help related to it ..... i want to implement this in Vb 6.

    HELP ME PLZzzzzzzzzz
    You'll get life just for once so don't waste it .......

  2. #2
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    im not sure that i understood exactly what you mean, but when minimizing the playlist in winamp it only changes the height property...

    add this code to your program in the event where the button is pressed, and change '100' to what the small size is, and change '1000' to what the large size is...(the form must have one of those sizes at startup).

    VB Code:
    1. If Me.Height = 100 Then
    2.     Me.Height = 1000
    3. ElseIf Me.Height = 1000 Then
    4.     Me.Height = 100
    5. End If
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Do you mean the text that goes from right to left in winamp, displaying the song title, artist, and track number? Do a loop for it, taking a certain amount away from the left {play with it until it looks good}. When it goes offscreen {left + width <=0}, reset it's left property.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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