Le 15 nov. 11 à 23:02, Christian Schmitz a écrit: > Am 15.11.2011 um 19:05 schrieb Arnaud Nicolet: > >> After tried different things, it appears IconMBS.DrawIcon works on >> Carbon but not on Cocoa. Is it known? > > Yes. And will be documented soon. > > Please use DrawIconCGContext and pass a CGContext handle. > > You can use CGContextMBS class for this and use > GetCurrentCGContextMBS or Window.CGContextMBS to get a context. > Please note that coordinates have the origin typically on the lower > left.
Thanks. I also appreciate the example. It's true, us, "simple" RS users, don't have the habit to deal with CGContexts. So this isn't related to the IconMBS class, but to the GUI (graphics), right? I expected this, because it's known RS implemented Cocoa for the GUI "only" (and I tend to assume it's safe for plugins to have the same behaviour). _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info