Re: Font size

new topic     » goto parent     » topic index » view thread      » older message » newer message

Try this...

    atom char, pnt, ok
    char = struct_CHARFORMAT( 0,0,0,0,0,0,0,"")
    ok = sendMessage( myRichEdit, EM_GETCHARFORMAT, 1, char )
    pnt = fetch(char, CHARFORMAT_yHeight) / 20
    release_mem(char)

--------
cheers,
Derek

----- Original Message -----
From: Patrick.Barnes at transgrid.com.au
Date: Tuesday, December 10, 2002 11:52 am
Subject: Font size

> 
> To win32lib guru's:
> 
> How do I get the current font size in points, from the current 
> cursor position in a richedit?
> 
> I'm stuck.
> =======================
> Patrick Barnes
> Information Systems Group
> 201 Elizabeth St, Sydney
> Patrick.Barnes at tg.nsw.gov.au
> Ext: 91-3583
> Ph:(02) 9284-3583
> Mob: 0410 751 044
> 
> 
***********************************************************************
> 
> 
***********************************************************************
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu