|
-
Mar 31st, 2002, 02:25 PM
#1
Thread Starter
Lively Member
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?
-
Mar 31st, 2002, 05:02 PM
#2
Are you checking the return value and calling GetLastError to find what went wrong if the call fails?
-
Mar 31st, 2002, 05:50 PM
#3
Thread Starter
Lively Member
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?
-
Apr 1st, 2002, 03:23 PM
#4
Good Ol' Platypus
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)
-
Apr 1st, 2002, 05:55 PM
#5
I think his problem is referencing the form later on.
ie., SetPixelV after it has already loaded, messing with the form from another subroutine.
-
Apr 1st, 2002, 06:53 PM
#6
Thread Starter
Lively Member
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?
-
Apr 2nd, 2002, 04:35 AM
#7
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|