Re: Graphical editor - question

From: Tor Iver Wilhelmsen (tor.iver.wilhelmsen_at_broadpark.no)
Date: 07/15/04


Date: 15 Jul 2004 15:40:52 +0200


"Andreas Beresko" <Andreas.Beresko@t-online.de> writes:

> but one question (need no example, just a yes or no): is it possible to draw
> a rectangle with 2d api and capture a mouse event only on this rectangle? i
> can't image, because a rectangle is not a window like a JPanel ...

No, but you can use inside() etc. to test if a mouse event (on the
component as a whole) is inside the rectangle.



Relevant Pages

  • Re: Capture windows area
    ... >> the mouse the area inside this rectangle is captured. ... Once the selection has been ... made then hide the full-screen window and resume capture ... window lost focus and the user didn't know about Alt+Tab to ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Capture windows area
    ... > the mouse the area inside this rectangle is captured. ... A common technique is to make a screen capture of the entire desktop and display it on a full-screen borderless form, ... Once the selection has been made then hide the full-screen window and resume capture ... You may want to add an automatic unlock on a timeout though in case your window lost focus and the user didn't know about Alt+Tab to ...
    (microsoft.public.vb.winapi.graphics)
  • Re: image acquisition via screenshot
    ... it only works if I capture a rectangle inside the figure. ... I run Matlab on a remote host and export the display to my XServer. ...
    (comp.soft-sys.matlab)
  • Capture part of the PocketPC-screen?
    ... The aim is to draw a rectangle with a SolidBrush in the needed ... background-color somewhere outside the visible screen, ... Now I need to find a possibility how to capture a given region of the screen ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Acrobat-like splashscreen in Java on LINUX ?
    ... It would probably be better to capture just the rectangle that the ... irregularly shaped splash screen spans. ...
    (comp.lang.java.gui)