Results 1 to 3 of 3

Thread: Gdi gui

  1. #1

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Lightbulb Gdi gui

    This little demo app i build on top of my brand new gdi module (v1.2), to draw the gui area. There are numerous features that are used in this demo. There is a z-order handling also. Read my notes to learn how to use it.

    Please report any memleak and error asap! Any improvement is welcome!

    Edit: i have tested this demo app in all 3 initialization mode, by walking thru LaVolpe's tutorial and steps ( http://www.vbforums.com/showthread.php?t=543969 ), i found no any GDI leaks so far. You also can test it, by placing two command buttons on the form, and copy the initialization events from the Form_Load event to Command1 then place an UnloadEngine() calling to the Command2 (just place a PCT.Cls:PCT.Enabled = False also after the unloadengine, to avoid the accidental picturebox events!). Now lets play with them, and lets see what is you get! You also can press the Command1 button as much as you just want it, the InitEngine() method does some clean up before initializes the dc's and so on.

    i hope you still find some leaks, so please report them here

    edit2: i got a gdi leak, the zip is contains the fixed version.

    Have fun!

    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Jim Davis; Dec 26th, 2008 at 07:35 AM.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Gdi gui

    Pretty nice effects. And I concur, no leaks.
    P.S. Nice to see that tutorial helped someone.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: Gdi gui

    Sure it will! The thing is that i just never saw any such a nicely organized thread about handling and preventing leaks, just small chops and some feedbacks on coding sites about, so i just figured out by myself how to overcome these problems. I wish i could see it before! Your tutorial helps to any1 that using 'complex' api calls.

    Thanks for testing my app!

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