• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGConfigureDisplayOrigin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGConfigureDisplayOrigin


  • Subject: CGConfigureDisplayOrigin
  • From: Niyaz <email@hidden>
  • Date: Wed, 13 Apr 2005 10:50:35 +0530
  • Importance: Normal

Hi All,

I tried using CGConfigureDisplayOrigin API to shift the global desktop
origin. Wrote the code as below:

/******************************** CODE BEGINS HERE
*****************************************/
CGError err;
GDisplayConfigRef configRef;
CGDirectDisplayID display;
CGDisplayCoord x, y;
boolean_t b;
size_t h,w;
CGRect cgrect;
CGDisplayErr disperr;

err = CGBeginDisplayConfiguration(&configRef);

display = CGMainDisplayID();
b = CGDisplayIsActive(kCGDirectMainDisplay);
b = CGDisplayIsMain(kCGDirectMainDisplay);
cgrect = CGDisplayBounds(kCGDirectMainDisplay);
err = CGConfigureDisplayOrigin(configRef,kCGDirectMainDisplay,555,555);

if(err){
	err = CGCancelDisplayConfiguration(configRef);
}
else{
	err = CGCompleteDisplayConfiguration(configRef,1);
}
/******************************** CODE ENDS HERE
*****************************************/

But, to my surprise the change didn't happened. Is there anything I
missed out to make it happen?
Thanking you in anticipation.

Regards
Niyaz N

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CGConfigureDisplayOrigin
      • From: Mike Paquette <email@hidden>
  • Prev by Date: Re: NSSpellChecker crashes after 64k words
  • Next by Date: Re: Detecting Double Byte Input
  • Previous by thread: Re: Creating a "tool" in objective-C
  • Next by thread: Re: CGConfigureDisplayOrigin
  • Index(es):
    • Date
    • Thread