Re: Measure point to point
- From: "Andy" <andy@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 03:15:30 -0400
Hi Peter,
Thanks for the great tip and I am able to make some reasonable progress
on it. I am still searching for a way to draw a line between 2 points that
will show the measurement.
Andy
"Peter Below (TeamB)" <none> wrote in message news:xn0faj2yy8xi9n00f@xxxxxxxxxxxxxxxxxxxxxxxxx
Andy wrote:
I am trying to create a tray application that allows the user to
measure 2 points on the screen, in pixels, mm, cm, etc. What
tools/components do I need to get this done?
Basically none. You can do this by creating a full screen empty form
(Borderstyle bsNone, all Bordericons set to false, Windowstate set to
maximized) that is transparent (or shows a bitmap image of the full
screen in its client area). You can fake transparency easily by setting
the forms Brush.Style to bsClear in the forms OnCreate event. The form
then simply does not draw anything, so the previous background appears
unchanged. The form will get mouse events, though, and you can draw on
its Canvas (use an xor pen to be able to erase what you have drawn, if
needed).
Search the newsgroup archives for "unit PBCaptureFormU" as a phrase,
that should turn up an old post of mine that shows the technique.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
.
- Follow-Ups:
- Re: Measure point to point
- From: Peter Below (TeamB)
- Re: Measure point to point
- References:
- Measure point to point
- From: Andy
- Re: Measure point to point
- From: Peter Below (TeamB)
- Measure point to point
- Prev by Date: Re: Does anyone know which database engine creates .TDB files?
- Next by Date: Re: Measure point to point
- Previous by thread: Re: Measure point to point
- Next by thread: Re: Measure point to point
- Index(es):
Relevant Pages
|