Results 1 to 10 of 10

Thread: windows background as our programs container?!

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    61

    windows background as our programs container?!

    hello,

    how can we run our program , using windows as the form( any container) of our program, like these programs that move on the windows background, while other parts can be accessed???

    ( some of these cartoon programs run like this, if youve seen one before)

    thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Do you mean some flying (floating) objects on the screen ?

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    61
    yes, exactly

    for example to have a ball object bouncing on the screen

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If so , I believe the best bet is Directx and API rather than GDI+ . It needs more code to have smooth details in your forms(edges , etc.. ) I'll have a look around hopfully I can get some example .

  5. #5

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    61
    did you find anything?!

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yes , I did but sadly not in VB.NET . The general idea of these projs is : to have transparent form (this became very easy in .NET , just set your transparent key of your form to any color you want and use the property Opacity to any %number "in the Paint_Form event) . Then draw your object (this is the crucial part , it needs a lot of work with APIs such "CreateReg and BitBlt ..etc ) . Lastly , give them some motion (based on some calculation (x , y arrays ) ).

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Here's one example , exactly what you want but as I said it's VB6 .
    Attached Files Attached Files

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This should explain how to draw on the screen with APIs .
    Attached Files Attached Files

  9. #9

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Posts
    61
    i will check them out, thanks! but can we use other things on the desktop while setting the opacity to 0? for example if you click on mycomputer , when the new window appears, will our moving object stay on top?

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    First you have to shape your objects (say a ball or cup ) and cut off thier edges (so that you can only view the object itself (no borders no form) . I believe all other icons on the desktop should be accessible .

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