May 01, 2024, 07:50:32 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Changing Rich Control font

Started by Bruce Peaslee, September 05, 2010, 11:12:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruce Peaslee

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 Ã¥
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

Bruce Peaslee

I already had the answer    ::)

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

ControlCMD (dlgMap, nLot, @RTSETSELFONT, "Symbol", 12, 1, 0x20000
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles