Search found 4 matches

by berbellll
Thu Jul 06, 2017 11:48 am
Forum: Mac OSX
Topic: CocoaMessage
Replies: 15
Views: 10243

Re: CocoaMessage

it works
Thanks wilbert !!
by berbellll
Wed Jul 05, 2017 3:11 pm
Forum: Mac OSX
Topic: CocoaMessage
Replies: 15
Views: 10243

Re: CocoaMessage


ImportC ""
CGDisplayCreateImage(displayID)
CGImageGetHeight(image)
CGImageGetWidth(image)
CGImageRelease(image)
CGMainDisplayID()
EndImport

Procedure GetScreenX()

Define CGImage, NSImage, ImageRect.NSRect

CGImage = CGDisplayCreateImage(CGMainDisplayID()); get CGImage from main display ...
by berbellll
Wed May 10, 2017 12:10 pm
Forum: Mac OSX
Topic: CocoaMessage
Replies: 15
Views: 10243

Re: CocoaMessage

is working.
Thank you !!!
by berbellll
Wed May 10, 2017 2:01 am
Forum: Mac OSX
Topic: CocoaMessage
Replies: 15
Views: 10243

Re: CocoaMessage

CocoaMessage allows you to send messages to cocoa objects.
CGDisplayCreateImage is a normal C function that needs to be imported using ImportC.

Something like this EnableExplicit

ImportC ""
CGDisplayCreateImage(displayID)
CGImageGetHeight(image)
CGImageGetWidth(image)
CGImageRelease(image ...