Results 1 to 7 of 7

Thread: SetPixelV Problems

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82

    SetPixelV Problems

    I was using the SetPixelV API call to make a simple particle system (because I wanted to do something that looked cool for a change) but I can't get the pixels to show on the screen. I've tried setting autoredraw to false and to true, and i've tried me.refresh before and after setpixelv and every combination of these things, but nothing works. What is wrong?
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

  2. #2
    jim mcnamara
    Guest
    Are you checking the return value and calling GetLastError to find what went wrong if the call fails?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82
    no, but I don't think its an error.
    I kinda overexagerated before because I was pissed that it wasn't working.
    If I put setpixelv in form_load and use a combo of the things I mentioned before, it will work. But if I move the setpixelv to a command button, then I have to change the combo or it wont work. and the combos that i use seem to vary from project to project. It's really odd, maybe its something with my system.
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Actually the answer is much more simple; simply put a Me.Show call as the first line in your Form_Load. As it so happens, the form is only shown AFTER Form_Load has been executed. This will stop that behavior.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    jim mcnamara
    Guest
    I think his problem is referencing the form later on.

    ie., SetPixelV after it has already loaded, messing with the form from another subroutine.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82
    exactly, I try to set it for a particle system, but it never shows its ugly, pixeled face!
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

  7. #7
    Junior Member
    Join Date
    Mar 2002
    Location
    Porsgrunn,NORWAY
    Posts
    30
    picture1.show 'use picture, see pixelV command
    scalemode=vbpixels 'i always use pixels, maybe twips can be your problem
    forecolor=vbblack 'example
    fillcolor=vbblack


    example for star pattern
    for x=0 to scalewidth
    for y=0 to scaleheight
    pixelV(picture1.hdc,scalewidth,scaleheight) dont remember
    im missing something i think.
    next
    next

    anyway hope you'll find a sollution.

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