Results 1 to 13 of 13

Thread: [RESOLVED] Need urgent help. Please look at the code.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    [RESOLVED] Need urgent help. Please look at the code.

    Greetings,

    I am getting crazy becaus nothing is working like it should be.
    Quick scenario

    I have 3 picture boxes.
    pic1 = for storing last image
    pic2 = for getting a new picture
    pic3 = for displaying to the user

    Initial start:
    Pic1 = vbmaximized - Autosize = false Autoredraw=true
    pic2 = Autosize = true Autoredraw = true
    pic3 = vbmaximized - Autosize = false Autoredraw=true

    pic1 gets a picture from the resource file

    loop
    using the corsor keys loads the next image to pic2
    pic2 is now centred in the screen
    pic3 get now pic1 but only the size of pic2
    pic3 now fades from his image to pic2 image
    pic1 should now become exact the copy of pic3 (Store)
    loop end


    I get confused but have a look on the code and you get the
    idea behind.

    Thanks in advance


    BTW Please insert in the resource file on possition 102 to 109 own pictures.
    Attached Files Attached Files
    Last edited by Bongo; Jan 9th, 2003 at 02:25 AM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    anyone

  3. #3
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    It Seems To Work For Me, What Doesnt It Do For You???
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    after the proc InnenNachAussenBlende
    pic1 (visible false) should now becom the exact copy of
    pic3 (visible true)
    then pic1 gets visible and pic3 visible false

    But when you trace you will find out pic1 has not the
    image of pic3 in the next loop - it cointains
    still ithe image 101 from the resource file

    But pic1 should still contain the image of the pic3

    use the proc see (num) to see the different pics while debugging

  5. #5
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    I am confused are they all supposed to be the same picture???
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    lets start clear the sit.

    pic1 = for storing a picture. To have a startpic in there I use 101 in the res file. Autosize = false, size is vbmaxsize

    pic2 acts as the "load picture box" all pictures will be loaded via pic2. Autosize = True

    pic3 is actually the main pic. in there all things happen. Autosize = false, size is vbmaxsize

    Status
    1st step Start app
    pic1 has the init picture from the res file, is visible

    pic2 = empty
    pic3 = empty

    2nd step load pic
    pic1 still the same

    a) pic2 contains now the loaded picture and will be resized
    b) pic3 gets now the pic1 picture but only the size of the loaded pic2

    3thd step display
    pic3 will now by doing some effects showing the pic2(loaded)

    Now we have the following state
    Pic1 = still the int picture
    pic2 = a loaded picture
    pic3 = has now the loaded picture also

    here I have the problem
    pic1 should now become pic3 (to store the last seen pic)
    and the circle will stat again in step 2a.

    In pic1 should now the last stored image but as soon I try to
    perform action 2b the picture in pic3 is still the initial picture,
    and not the last stored

    hope its understandable

  7. #7
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    This Type of thing???


    (See Attached)
    Attached Files Attached Files
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    BodwadUK - yes I tried it and it looked good, BUT ...
    sorry as soon I put the pic1 and pic3 back there possition
    needed in my app it did not work anymore.

    See the attached file. I did only cange on the form the
    initial size of pic1 and pic3 and in the code I uncommented
    the bits which are needed.

    So if you run now the app like it is you will see that
    when we transorm from pic1(store/last image) to pic 3(hadle GUI)
    the initial picture from pic1 still is there

    As I mentioned let it first run without any changes and you will see.
    Attached Files Attached Files

  9. #9
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Hmmm I dont see what you mean as it seems to run ok to me


    What is it you are actually tring to achive as a whole????
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    slidshow with effects from one picture to the next,

    see attached jpgs
    Attached Files Attached Files

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    I FOUND IT

    after passing the image from pic3 to pic1 there must be
    the following statement
    pic1.picture = pic1.image
    pic1.refresh

    then the picture is stored or whatever in the picturebox.
    Otherwise the pic is only in memory and therefore the initial
    pic is permanently the picture.


    Many thanks for your pation and help
    Manfred

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    looks like i posted my anwser in the wrong row (see 2 above)

    If you still like to have the jpg pm me.

    thanks again

  13. #13
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    uhhh there not jpegs its the project i sent you
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

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