Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font Settings in ShowNote
#7
Maybe I am trying to do something beyond my level (actually definitely!) but still I might be able to muddle through with your help.


You say:


Quote:int htb=ShowNote(...)
int h=child("" "RichEdit20" htb)
now copy code from Dialog_richedit_colors and paste here
the code is between SendMessage and SendMessage

and then to place this text after the

Code:
Copy      Help
int h=child("" "RichEdit20" htb)
line

Code:
Copy      Help
SendMessage h EM_SETBKGNDCOLOR 0 bcol
    
CHARFORMAT cf.cbSize=sizeof(CHARFORMAT)
cf.dwMask=CFM_COLOR|CFM_BOLD|CFM_FACE|CFM_SIZE
cf.crTextColor=tcol
cf.dwEffects=CFE_BOLD
strncpy(&cf.szFaceName "Comic Sans MS" 31)
cf.yHeight=400 ;;twips
    
SendMessage h EM_SETCHARFORMAT SCF_ALL &cf

The problem is that I don't know where you mean to put all this? You say "paste here" but where is "here" In the ShowNote Function? A new function?


You say


Quote:what do I do with the three dots (...) after ShowNote. What should I fill this in with?
Anything.

What do you mean? What kind of things do I put in there? What is significant of this construction?

Sorry to be so poor at programming knowledge. I have gotten so so far with your help. If I can get one simple working example I can go from there.

Thanks again,

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)