IonicWind Software

IWBasic => GUI Central => Topic started by: Bruce Peaslee on September 05, 2010, 11:12:15 AM

Title: Changing Rich Control font
Post by: Bruce Peaslee on September 05, 2010, 11:12:15 AM
Hi,

I want to change the font for the next character in a rich edit control. This is what I have come up with, but it doesn't work:


SelectRichEditEnd(dlgMap, nLot) 'this sets the selection to the very end of the control
ControlCMD (dlgMap, nLot, @RTSETSELCOLOR, WHITE) 'this works
ControlCMD (dlgMap, nLot, @RTSETSELFONT, "Symbol", 12, 1, 0) 'this doesn't
ControlCMD (dlgMap, nLot, @EDREPLACESEL,  chr$(0xE5)) 'I'm looking for sigma, but I get an Ã¥
Title: Re: Changing Rich Control font
Post by: Bruce Peaslee on September 05, 2010, 05:33:27 PM
I already had the answer    ::)

http://ebasic-aurora.com/forums/index.php?topic=670.msg5753#msg5753 (http://ebasic-aurora.com/forums/index.php?topic=670.msg5753#msg5753)

ControlCMD (dlgMap, nLot, @RTSETSELFONT, "Symbol", 12, 1, 0x20000