Article View: borland.public.vdbase.forms
Article #212Re: onLeftDblClick
From: Romain Strieff [TeamB]
Date: Mon, 01 Mar 1999 00:00
Date: Mon, 01 Mar 1999 00:00
23 lines
1456 bytes
1456 bytes
In article <7be60b$ptv15@forums.borland.com>, Jean-Pierre Martel politely
paraphrased ...
> I am wondering something. In the Programming NG (in the thread called "Three
> questions"), Mr. Strieff gave yesterday (Sunday) the code that allows us to
> know exactely the mouse position in a Form.
---
Not at all, the question was to get the position ofthe mouse pointer on
the monitor _screen_, to know the exact position in the _form_ (or any
other window) you have to add some more code.
....
getcursorpos( pnt ) && returns point structure in screencoordinates
if type("ScreenToClient") # "FP"
extern clogical ScreenToClient(chandle, cptr) USERDLL
endif
screentoclient(form.hwnd, pnt) && converts relative to the form
--
Romain Strieff [TeamB]
Please read this newsgroup guide below before
posting on the private Inprise newsgroups.
http://www.inprise.com/newsgroups/guide.html
--
Technical Details
Message-ID:
<MPG.1144ce447d6210c989f40@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36d97bf2.4621417@forums.inprise.com> <7bd6v0$p9e5@forums.borland.com> <36da5ce5.483192@forums.inprise.com> <7be60b$ptv15@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 15bdfb,5ce837f094244033 X-Google-Attributes: gid15bdfb,public From: teamb@opto-pps.com (Romain Strieff [TeamB]) Subject: Re: onLeftDblClick Date: 1999/03/01 Message-ID: <MPG.1144ce447d6210c989f40@forums.inprise.com> X-Deja-AN: 449983594 References: <36d97bf2.4621417@forums.inprise.com> <7bd6v0$p9e5@forums.borland.com> <36da5ce5.483192@forums.inprise.com> <7be60b$ptv15@forums.borland.com> Organization: TeamB Newsgroups: borland.public.vdbase.forms