Results 1 to 5 of 5

Thread: Using AnimateWindow and settransparency on a form with no titlebar

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Cool Using AnimateWindow and set the transparency for a form with no titlebar

    Hello, I am sort of new to Visual Basic, but i am currently practicing VB by writing a cd player. I recently discovered how to use the AnimateWindow and how to set transparency for a form. I want to get into subclassing, because it would make my programming more powerful, and because I currently have a problem.
    I have tried to use the AnimateWindow function on a titlebar-less form(with a custom shape) but nothing will execute. Meaning that if I want to make a fade in effect it wont unless i have a titlebar. I supose i would have to do some subclassing, but i really need explanations on concepts and techniques. Thanx a lot for answering. Amon Ra(Alexis)

    PS : I am on Windows 2000
    Last edited by Amon Ra; Feb 23rd, 2001 at 09:31 PM.

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    I don't think that you can use animatewindow on a window without a titlebar. The purpose of the function is to flash the title bar of a window. It might still work if your window is minimized to the task bar however.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Smile AnimateWindow

    Actually AnimateWindow is used to make transition effects with constants such as AW_BLEND, AW_HIDE, AW_ACTIVATE,AW_VER_POSITIVE,AW_VER_NEGATIVE,AW_HOR_POSITIVE,AW_HOR_NEGATIVE,AW_CENTER..

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    Hmm. The flashing form title bar is the only place i have ever seen it used. It is not in either my Microsoft Win-32 Programmer's Reference Or my Visual Basic Programmer's Guide to teh Win32 API. Where did you get your info?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    I was wondering how MS made their menus fade in and fade out. I looked on the web and i found the function. i wrote a class with many possible combinations with flages, but it works only on a window that has a titlebar.So i was thinking i had to do some subclassing.
    have a look at the class(tell me if thereis a bug)
    By the way, it runs only on Win2k, so that is why u might not have seen it.
    Attached Files Attached Files
    Amon Ra
    The Power of Learning.

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