Re: Measure point to point
- From: "Rael" <rael@xxxxxxxxxx>
- Date: Thu, 30 Aug 2007 19:03:57 +0200
Thanks for useful post. I've been thinking about how this is done.
One further question:
What I would like to do is have a panel within the "screen capture" form
that has total transparency, while the form itself has partial transparency.
This way the selected region is nicely highlighted.
Any ideas on how to do this?
Rael
"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.
.
- Follow-Ups:
- Re: Measure point to point
- From: Peter Below (TeamB)
- Re: Measure point to point
- From: yannis
- 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: calling a wsdl and webservice in runtime
- 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
|