Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:19:55+00:00 2026-06-13T19:19:55+00:00

In Firemonkey 2 (FMX2) there is the interface IFMXMouseService = interface(IInterface) [‘{2370205F-CF27-4DF6-9B1F-5EBC27271D5A}’] The interface

  • 0

In Firemonkey 2 (FMX2) there is the interface

IFMXMouseService = interface(IInterface)
[‘{2370205F-CF27-4DF6-9B1F-5EBC27271D5A}’]

The interface just has a GetMousePos function.
But how can I set the mouseposition in a crossplattform way?
Any ideas anybody?

The best idea I came up with yet is to do a conditionaly compile until the possibility is existing in FMX – but I do not know how to set the mouseposition via Delphi for MACOSX.
I would be thankful for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:19:56+00:00Added an answer on June 13, 2026 at 7:19 pm

    Here is the procedure you need. You will have to add macapi.coregraphics and macapi.cocoatypes to your uses clause.

    procedure setmousepos(x,y:single);
    
    var aNSPoint:NSPoint;
    
    begin
      aNSPoint.x:=x;
      aNSPoint.y:=y;
      CGWarpMouseCursorPosition(aNSPoint);
    end;
    

    You could of course pass a TPointF in place of X,Y but you still need to set up the NSPoint X and Y separately as NSPoint is different to TPointF.

    Regards

    Dave Peters
    DP Software
    http://www.dpsoftware.com/firemonkey

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using FireMonkey and want the user to select a directory using the interface
I've just bought a Mac Mini in order to develop Mac OS X FireMonkey
Is there a cross-platform way of launching an email client from FireMonkey so that
I am interested in using Firemonkey for producing an iOS app. There are several
Couldn't find any file-tree component (cross-platform, of course) in the FireMonkey framework. Anyone has
Is there a HTML Viewer for FireMonkey like this (VCL): http://code.google.com/p/thtmlviewer/downloads/list ? It will
Is there a way, to remove my firemonkey application form Windows XP/vista/7 taskbar? There
I just recently started learning Firemonkey, so if the question is stupid, please do
I've heard that Delphi's NEW Rad Studio XE2 has something called FireMonkey that will
In XE2 there is a new function : 'styles', for VCL( .vsf) and Firemonkey

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.