 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joshthedelphinovice Guest
|
Posted: Fri Jan 14, 2005 1:50 am Post subject: OnPaint Procedure call |
|
|
Hi all,
I've tried to find the answer to this through google, but haven't had
any success. Anyway, I have a experiment almost done which presents a
random stimulus at the top of the screen with 3 different response
option available. I'm trying to get the paintbox to display a new
randomly drawn stimulus using the code I have that is triggered by the
onpaint event for the paintbox. So far, I've been unsuccessful. I've
solved the errors with the following code:
FTrial.PaintBox1.Canvas.Create;
but I don't think that'll shoot off my stimulus-drawing code. Any ideas
on how I can do it?
Josh
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Fri Jan 14, 2005 9:21 am Post subject: Re: OnPaint Procedure call |
|
|
"Joshthedelphinovice" <redford (AT) acsu (DOT) buffalo.edu> wrote
| Quote: | I've tried to find the answer to this through google, but haven't had
any success. Anyway, I have a experiment almost done which presents a
random stimulus at the top of the screen with 3 different response
option available. I'm trying to get the paintbox to display a new
randomly drawn stimulus using the code I have that is triggered by the
onpaint event for the paintbox. So far, I've been unsuccessful. I've
solved the errors with the following code:
FTrial.PaintBox1.Canvas.Create;
but I don't think that'll shoot off my stimulus-drawing code. Any
ideas on how I can do it?
|
If you don't _think_ it will repaint the paintbox, what error did you
solve?
Try Invalidate.
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
J French Guest
|
Posted: Fri Jan 14, 2005 10:18 am Post subject: Re: OnPaint Procedure call |
|
|
On 13 Jan 2005 17:50:01 -0800, "Joshthedelphinovice"
<redford (AT) acsu (DOT) buffalo.edu> wrote:
| Quote: | Hi all,
I've tried to find the answer to this through google, but haven't had
any success. Anyway, I have a experiment almost done which presents a
random stimulus at the top of the screen with 3 different response
option available. I'm trying to get the paintbox to display a new
randomly drawn stimulus using the code I have that is triggered by the
onpaint event for the paintbox. So far, I've been unsuccessful. I've
solved the errors with the following code:
FTrial.PaintBox1.Canvas.Create;
but I don't think that'll shoot off my stimulus-drawing code. Any ideas
on how I can do it?
|
FTrial.PaintBox1.Refresh
FTrial.PaintBox1.Repaint
FTrial.PaintBox1.Invalidate then FTrial.PaintBox1.Update
FTrial.PaintBox1.Paint ( Protected )
|
|
| Back to top |
|
 |
AlanGLLoyd Guest
|
Posted: Fri Jan 14, 2005 10:27 pm Post subject: Re: OnPaint Procedure call |
|
|
In article <41e79aec.94960963 (AT) news (DOT) btclick.com>, [email]erewhon (AT) nowhere (DOT) uk[/email] (J French)
writes:
| Quote: | FTrial.PaintBox1.Refresh
FTrial.PaintBox1.Repaint
FTrial.PaintBox1.Invalidate then FTrial.PaintBox1.Update
|
But not all at once <g> Unless you're into supererogation.
Alan Lloyd
[email]alanglloyd (AT) aol (DOT) com[/email]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|