May 06, 2024, 04:59:06 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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