??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
Show quoted text 34 lines
Right. We have to fix this.
Mattias

Mailing lists / lazarus / 2003-07
11 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
Right. We have to fix this.
Mattias
Pfff.... took some time and xlib hacking, but GetCursorPos is in CVS now. BTW, If someone…
The Win32 version is in CVS also
Marc
In the IDE designer these (see subject) two functions are used to determine the mouse…
Micha Nelissen wroteHi, In the IDE designer these (see subject) two functions are used to determine the mouse position?
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used.
AFAIK, there is no caret on a form and on windows GetCaretPos returns the client position of the caret of whatever it currently is in. Please explain.
The Caret (on windows) is system wide. There is only one Caret (that's why you don't have to specify a handle in GetCaretPos) and it is per def. in the currently focused window.
Marc
+ From: Micha Nelissen + Sent: maandag 28 juli 2003 8:49 + + + > + > I guess that is a…
Eehh.... I mean, the GTK version is in CVS.
Marc
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
If the following is all fixed then positioning of controls on the designer form work correctly, they get the position you want instead of centered:
winapi.inc:GetCursorPos -> interface:GetCursorPos -> win32intf:GetCursorPos.
You need to add that last one in win32winapi and win32winapih.
Regards,
Micha.
Hi,
In the IDE designer these (see subject) two functions are used to determine the mouse position? AFAIK, there is no caret on a form and on windows GetCaretPos returns the client position of the caret of whatever it currently is in. Please explain.
Regards,
Micha.
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
Please take a :GetCursorPos. It calls GetCaretPos.
Thanks,
Micha.
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
I guess that is a typo. GetCaretPos should have been GetCursorPos
Fixed that.
Indeed, but GetCaretPos shouldn't been used there anyway.
Marc
??? GetCaretPos hasn't anything to do with a mouse, so I don't think it is used. The…
I thought so too, but check GetFormRelativeMousePosition in designerprocs.pas.
The strange thing is that the form origin is subtracted from it, but since GetCaretPos is client relative position, this can never give a correct result.
Regards,
Micha.
If the following is all fixed then positioning of controls on the designer form work…
Pfff.... took some time and xlib hacking, but GetCursorPos is in CVS now.
BTW, If someone is doing GTK2, GetCursorPos should be overridden and reimplemented to use native gdk calls.
Marc
If the following is all fixed then positioning of controls on the designer form work…
+ From: Micha Nelissen
+ Sent: maandag 28 juli 2003 8:49
+
+ Marc Weustink wrote:
+
+ >
+ > I guess that is a typo. GetCaretPos should have been GetCursorPos
+ >
+ > Fixed that.
+
+ If the following is all fixed then positioning of controls on the
+ designer form work correctly, they get the position you want instead of
+ centered:
+
+ winapi.inc:GetCursorPos -> interface:GetCursorPos ->
+ win32intf:GetCursorPos.
+
+ You need to add that last one in win32winapi and win32winapih.
OK, I'll look at it tonight.
Marc