Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.pascal.misc > Newsgroup comp.lang.pascal.delphi.misc

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2003, 01:53 AM
Martin Harvey
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

On Sun, 17 Aug 2003 01:29:58 GMT, "name" <e@mail.add> wrote:

>Is it possible to draw and _keep_ a line on a constantly repainted window?
>all my attemps have failed... unless its constantly drawn (evey second) it
>disapears and when its constantly drawn its still a bit shakey and i can
>imagin a bunch of lines being constantly redrawn wont be good.
>


Read the manual. or the online help files.

Look at Form.Canvas, TCanvas and TPen.

MH.

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 08-17-2003, 02:35 AM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Martin Harvey" <martin@pergolesi.demon.co.uk> wrote in message
news:60otjv825b30eon4ldjoidli7moqe80evd@4ax.com...
> On Sun, 17 Aug 2003 01:29:58 GMT, "name" <e@mail.add> wrote:
>
> >Is it possible to draw and _keep_ a line on a constantly repainted

window?
> >all my attemps have failed... unless its constantly drawn (evey second)

it
> >disapears and when its constantly drawn its still a bit shakey and i can
> >imagin a bunch of lines being constantly redrawn wont be good.
> >

>
> Read the manual. or the online help files.
>
> Look at Form.Canvas, TCanvas and TPen.
>
> MH.
>


My question is: Is it possible?
I know very well how to use the help files as i use them frequently.


Reply With Quote
  #3 (permalink)  
Old 08-17-2003, 02:49 AM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Martin Harvey" <martin@pergolesi.demon.co.uk> wrote in message
news:60otjv825b30eon4ldjoidli7moqe80evd@4ax.com...
> On Sun, 17 Aug 2003 01:29:58 GMT, "name" <e@mail.add> wrote:
>
> >Is it possible to draw and _keep_ a line on a constantly repainted

window?
> >all my attemps have failed... unless its constantly drawn (evey second)

it
> >disapears and when its constantly drawn its still a bit shakey and i can
> >imagin a bunch of lines being constantly redrawn wont be good.
> >

>
> Read the manual. or the online help files.
>
> Look at Form.Canvas, TCanvas and TPen.
>
> MH.
>


TPen is used to draw lines or outline shapes on a canvas.
*ive used tpen in the past

TCanvas provides an abstract drawing space for objects that must render
their own images.
and i assume Form.Canvas is just the canvas of the form ?

i've expirmented with canvases and the tpen drawing different items in the
past... my question was simply:

Is it possible to draw and _keep_ a line on a constantly repainted window?
thats a yes or no question -- am i soposto figure that out based on the data
in the help files? I dont remember it saying anything about drawing on a
constantly refreshing/repainting window hence the post.

if i dident know what to look up then this post would be helpfull =)


Reply With Quote
  #4 (permalink)  
Old 08-17-2003, 09:52 AM
Dunny
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

name wrote:

> Is it possible to draw and _keep_ a line on a constantly repainted
> window? thats a yes or no question -- am i soposto figure that out
> based on the data in the help files? I dont remember it saying
> anything about drawing on a constantly refreshing/repainting window
> hence the post.


Yes, it's possible.

Does it help to mention that I got a copy of Delphi on a coverdisk, and the only
help I had was the online help files, for about a year until I got a net
connection?

Trust me, *everything* you need to know is in the help. I was writing games
within a few months (although slowly using TImage). Try reading about the
WM_PAINT message, and what happens in there, and that will show you why you're
getting the results you see.

D.


Reply With Quote
  #5 (permalink)  
Old 08-17-2003, 05:13 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Michael Brown" <see@signature.below> wrote in message
news:CbC%a.118694$JA5.2689216@news.xtra.co.nz...
> "name" <e@mail.add> wrote in message
> news:XRB%a.26502$vo2.9760@newsread1.news.atl.earth link.net...
> >
> > "Martin Harvey" <martin@pergolesi.demon.co.uk> wrote in message
> > news:60otjv825b30eon4ldjoidli7moqe80evd@4ax.com...
> > > On Sun, 17 Aug 2003 01:29:58 GMT, "name" <e@mail.add> wrote:
> > >
> > > >Is it possible to draw and _keep_ a line on a constantly repainted

> > window?
> > > >all my attemps have failed... unless its constantly drawn (evey

second)
> > it
> > > >disapears and when its constantly drawn its still a bit shakey and i

> can
> > > >imagin a bunch of lines being constantly redrawn wont be good.
> > > >
> > >
> > > Read the manual. or the online help files.
> > >
> > > Look at Form.Canvas, TCanvas and TPen.
> > >
> > > MH.
> > >

> >
> > My question is: Is it possible?

>
> Obviously the answer is yes ...


thank your mr obvious.

>
> > I know very well how to use the help files as i use them frequently.

>
> Then look up the OnPaint event.


Ok!

OnPaint occurs when the paintbox receives a Windows paint message.


Description

Write an OnPaint event handler to draw the image of the paint box. The
OnPaint event fires when the system repaints the TPaintBox control. If there
is a handler for this event, its code is executed when the OnPaint event
fires.

Use properties and methods of the canvas (such as LineTo, Draw, and TextOut)
to programmatically construct the image that the paintbox presents on a
form. This can consist of a number of operations including drawing lines,
images, and shapes. A TPaintBox itself has no visible manifestation, so if
an OnPaint event handler is not provided or no drawing is done in the event
handler, the paintbox can not be seen on the form at runtime.

now that looks like it could be usefull.

> --
> Michael Brown
> www.emboss.co.nz : OOS/RSI software and more
> Add michael@ to emboss.co.nz - My inbox is always open
>
>



Reply With Quote
  #6 (permalink)  
Old 08-17-2003, 05:16 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"J French" <erewhon@nowhere.com> wrote in message
news:3f3fa5c8.40585263@news.btclick.com...
> On Sun, 17 Aug 2003 16:18:28 +0200, Alf Christophersen
> <alf.christophersen@basalmed.uio.no> wrote:
>
> <snip>
> >
> >I think we need some FAQ's around, and some rules about what to ask
> >about :-)

>
> There is a FAQ
>
> http://www.bancoems.com/CompLangPasc...sc-MiniFAQ.htm


its a nice faq
>
> It is a bit above 'name's' level


fyi: not anymore
>
> However now that Maarten is guiding the little swine, I expect that he
> will develop
> - there is plenty of scope.



Reply With Quote
  #7 (permalink)  
Old 08-17-2003, 05:17 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Alf Christophersen" <alf.christophersen@basalmed.uio.no> wrote in message
news:j6lujvc2382mlsso1qte4c1ghkfnj4t37d@4ax.com...
> On Sun, 17 Aug 2003 02:49:28 GMT, "name" <e@mail.add> wrote:
>
> >Is it possible to draw and _keep_ a line on a constantly repainted

window?
> >thats a yes or no question -- am i soposto figure that out based on the

data
> >in the help files? I dont remember it saying anything about drawing on a
> >constantly refreshing/repainting window hence the post.

>
> I don't ever believe you have read the help for the components you
> mention. Otherwise it wouldn't have been necessary to ask.
> People has even told you where to do things. But you keep on asking
> instead.


??


Reply With Quote
  #8 (permalink)  
Old 08-17-2003, 05:42 PM
Maarten Wiltink
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

name wrote in message ...
[...]
>and im getting mixed messages about the help files... some people think
>there the holy bible others think they are evil -- what am i missing here?



That some people know how to find everything and anything in them,
and some other people... don't.

It's like Google, or magic spells. You can do _anything_ if you can
divine the magic words you must chant to get it done.

In the case of the help file, especially the VCL help file, this is
actually fairly easy. But it takes some work to learn, and somehow
many people object to that.

Groetjes,
Maarten Wiltink



Reply With Quote
  #9 (permalink)  
Old 08-17-2003, 05:57 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Maarten Wiltink" <maarten@kittensandcats.net> wrote in message
news:3f3fbee1$0$49117$e4fe514c@news.xs4all.nl...
> name wrote in message ...
> [...]
> >you can start delphi?! i always have to take the cd out then put it back
> >in...

>
>
> See, now that's the sort of confession that really does nothing
> to impress people at all...
>
> (When you installed Delphi, did it add things to your start menu?
> I can't believe I'm asking this.)
>
> Groetjes,
> Maarten Wiltink
>
>
>

Theres no start menu in delphi... (I can't belive you asked me this)


Reply With Quote
  #10 (permalink)  
Old 08-17-2003, 05:58 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Maarten Wiltink" <maarten@kittensandcats.net> wrote in message
news:3f3fbe79$0$49113$e4fe514c@news.xs4all.nl...
> name wrote in message ...
> [...]
> >and im getting mixed messages about the help files... some people think
> >there the holy bible others think they are evil -- what am i missing

here?
>
>
> That some people know how to find everything and anything in them,
> and some other people... don't.
>
> It's like Google, or magic spells. You can do _anything_ if you can
> divine the magic words you must chant to get it done.
>
> In the case of the help file, especially the VCL help file, this is
> actually fairly easy. But it takes some work to learn, and somehow
> many people object to that.
>
> Groetjes,
> Maarten Wiltink
>
>
>

odd .. im all for the help files.


Reply With Quote
  #11 (permalink)  
Old 08-17-2003, 06:58 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Dodgy" <Dodgy@earth.planet.universe> wrote in message
newsojvjvofk2po451bgc6o1f9lsdhdqbr86t@4ax.com...
> On Sun, 17 Aug 2003 19:44:01 +0200, "Maarten Wiltink"
> <maarten@kittensandcats.net> waffled on about something:
>
> >name wrote in message ...
> >[...]
> >>you can start delphi?! i always have to take the cd out then put it back
> >>in...

> >
> >
> >See, now that's the sort of confession that really does nothing
> >to impress people at all...
> >
> >(When you installed Delphi, did it add things to your start menu?
> >I can't believe I'm asking this.)
> >
> >Groetjes,
> >Maarten Wiltink

>
> /me points ear towards Maarten land and listens for the screams.
>
> D0d6y.
> --
> MUSHROOMS ARE THE OPIATE OF THE MOOSES

lol he set himself up ^_^


Reply With Quote
  #12 (permalink)  
Old 08-17-2003, 10:52 PM
Alf Christophersen
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

On Sun, 17 Aug 2003 17:16:23 GMT, "name" <e@mail.add> wrote:

>> It is a bit above 'name's' level

>
>fyi: not anymore


That proves it :-) (It is so high above your level that you don't
understand it :-) )
Reply With Quote
  #13 (permalink)  
Old 08-17-2003, 10:53 PM
Alf Christophersen
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

On Sun, 17 Aug 2003 17:15:13 GMT, "name" <e@mail.add> wrote:

>> I think we need some FAQ's around, and some rules about what to ask
>> about :-)

>
>you have faq's somewhere but people hide the links...


The FAQ's around is meant for people knowing most of Delphi. You don't
:-(
Reply With Quote
  #14 (permalink)  
Old 08-18-2003, 06:25 PM
name
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?


"Alf Christophersen" <alf.christophersen@basalmed.uio.no> wrote in message
news:5q10kv073os6mo7l9cnn3d61qql2i52ir0@4ax.com...
> On Sun, 17 Aug 2003 17:15:13 GMT, "name" <e@mail.add> wrote:
>
> >> I think we need some FAQ's around, and some rules about what to ask
> >> about :-)

> >
> >you have faq's somewhere but people hide the links...

>
> The FAQ's around is meant for people knowing most of Delphi. You don't
> :-(


Actually I do [enough to understand the faq] .. you dont even know my name &
the faq isent really on an upper level at least the links people have posted
claiming its the faq. Only comment on what people dont know if your willing
to help teach them instead of telling me i dont know anything about
delphi try posting on topic about drawing on a constantly repainting window.


Reply With Quote
  #15 (permalink)  
Old 08-19-2003, 11:10 AM
Maarten Wiltink
Guest
 
Posts: n/a
Default Re: Draw on constantly refreshing window -- ?

name wrote in message
<9S80b.229$kd3.158@newsread2.news.atl.earthlink.ne t>...
>"Alf Christophersen" <alf.christophersen@basalmed.uio.no> wrote in message
>news:5q10kv073os6mo7l9cnn3d61qql2i52ir0@4ax.com.. .

[...]
>> The FAQ's around is meant for people knowing most of Delphi. You don't


>Actually I do [enough to understand the faq] .. you dont even know my name


Not through any fault of his, I might add.

Groetjes,
Maarten Wiltink



Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing child window resizing in AWS Lorne Klassen Newsgroup comp.soft-sys.sas 0 10-17-2006 07:19 PM
Re: 'FlashWindow' with SASCBTBL Joe Whitehurst Newsgroup comp.soft-sys.sas 0 05-07-2006 06:26 PM
Re: W2kPro 9.1.3 ODS PDF DM "Output window full" Peetie Wheatstraw Newsgroup comp.soft-sys.sas 0 04-28-2006 04:41 PM
Re: clearing Output and Log window Madan Gopal Kundu Newsgroup comp.soft-sys.sas 0 03-31-2006 09:40 AM
Re: Question about default window sizes on SAS v8 for Windows Harry Droogendyk Newsgroup comp.soft-sys.sas 0 02-18-2005 04:05 PM



All times are GMT. The time now is 09:20 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.