This is how I get a shell path from a folderitem.
REALString s = 0;
if ( ! REALGetPropValueString( fol, "ShellPath", &s ) ) {
return 0;
}
// do work on "s".
On 16 Nov 2010, at 20:00, [email protected]
wrote:
> From: Real Basic <[email protected]>
> Subject:
> To: REALbasic Plugins <[email protected]>
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Thanks.
>
> I got the number based properties to work (font size, forecolor, etc),
> but I'm having issues with g.TextFont.
>
> The code I'm using is:
>
> REALGetPropValue((REALobject)context, "TextFont", &fontName);
> REALGetPropValue((REALobject)context, "TextSize", &fontSize);
> CGContextSelectFont (myContext, &fontName, fontSize, kCGEncodingMacRoman);
>
> But this doesn't appear to work. So I wrote another function that
> would just returns the graphic objects font name:
>
> char SKSFontNamefunc(REALgraphics context)
> {
> char fontName;
> REALGetPropValue((REALobject)context, "TextFont", &fontName);
>
> return fontName;
> }
>
> But this routine always returns blank.
>
> The issue is probably my lack of font knowledge, my lack of c string
> knowledge or both. Ultimately, I am trying to set the font of my
> CGContext to the same font as the graphics object.
--
http://elfdata.com/plugin/
"String processing, done right"
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>