BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OnPaint Procedure call

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Joshthedelphinovice
Guest





PostPosted: Fri Jan 14, 2005 1:50 am    Post subject: OnPaint Procedure call Reply with 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?
Josh

Back to top
Maarten Wiltink
Guest





PostPosted: Fri Jan 14, 2005 9:21 am    Post subject: Re: OnPaint Procedure call Reply with quote



"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





PostPosted: Fri Jan 14, 2005 10:18 am    Post subject: Re: OnPaint Procedure call Reply with quote



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





PostPosted: Fri Jan 14, 2005 10:27 pm    Post subject: Re: OnPaint Procedure call Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.