Fomatting toolbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • doncee

    Fomatting toolbar

    Trying to add the formatting toolbar to a memo field in '97. I am able to
    add the toolbar from the view\toolbar\cu stom menu but as soon as I open
    the database it becomes grayed out. Hopefully there is a fairly simple
    way to overcome this but haven't been able to find it myself. Any
    suggestions ???
    Thanks
    dc
  • ARC

    #2
    Re: Fomatting toolbar

    Do you mean that the memo field is an active x rich text control? If the
    field is just set to memo in the table, it won't support the formatting
    toolbar. For the rich text custom control, you pretty much have to put your
    own buttons in there, such as a button for bold, underline, text alignment,
    a font selection, etc., and have your own code for all buttons. For example,
    for the microsoft rich text control, the code behind the bold button would
    be something like:

    Me!txt1.SelBold = Not Me!txt1.SelBold

    If this is what you were after, and you need more sample code for other
    formatting buttons, let me know.

    Andy


    "doncee" <nopsamdbc9814@ nospamswbell.wa ntedwrote in message
    news:Xns9B354EC E412E0nopsamdbc 9814nospam@216. 196.97.131...
    Trying to add the formatting toolbar to a memo field in '97. I am able to
    add the toolbar from the view\toolbar\cu stom menu but as soon as I open
    the database it becomes grayed out. Hopefully there is a fairly simple
    way to overcome this but haven't been able to find it myself. Any
    suggestions ???
    Thanks
    dc

    Comment

    • doncee

      #3
      Re: Fomatting toolbar

      Thank you for your response. Yes, this is just a normal run of the mill
      memo field. I was afraid that it did not support formatting & your
      reply confirmed that. If you wouldn't mind posting a few more sample
      codes for rich text I would appreciate it. Once again, thanks for the
      clarification & reply
      dc

      ARC" <PCESoft@PCESof t.invalidwrote in
      news:ujzIk.3388 $ZP4.2779@nlpi0 67.nbdc.sbc.com :
      Do you mean that the memo field is an active x rich text control? If
      the field is just set to memo in the table, it won't support the
      formatting toolbar. For the rich text custom control, you pretty much
      have to put your own buttons in there, such as a button for bold,
      underline, text alignment, a font selection, etc., and have your own
      code for all buttons. For example, for the microsoft rich text
      control, the code behind the bold button would be something like:
      >
      Me!txt1.SelBold = Not Me!txt1.SelBold
      >
      If this is what you were after, and you need more sample code for
      other formatting buttons, let me know.
      >
      Andy
      >
      >
      "doncee" <nopsamdbc9814@ nospamswbell.wa ntedwrote in message
      news:Xns9B354EC E412E0nopsamdbc 9814nospam@216. 196.97.131...
      >Trying to add the formatting toolbar to a memo field in '97. I am
      >able to add the toolbar from the view\toolbar\cu stom menu but as
      soon
      >as I open the database it becomes grayed out. Hopefully there is a
      >fairly simple way to overcome this but haven't been able to find it
      >myself. Any suggestions ???
      >Thanks
      >dc
      >
      >

      Comment

      • ARC

        #4
        Re: Fomatting toolbar

        You're welcome.

        'Italics:
        Me!txt1.SelItal ic = Not Me!txt1.SelItal ic

        'center alignment
        Me!txt1.SelAlig nment = rtfCenter 'left= rtfLeft, right= rtfRight

        'underline
        Me!txt1.SelUnde rline = Not Me!txt1.SelUnde rline

        'font
        CommonDialog1.F lags = cdlCFBoth
        CommonDialog1.S howFont
        With Me!txt1
        .SelFontName = CommonDialog1.F ontName
        .SelFontSize = CommonDialog1.F ontSize
        .SelBold = CommonDialog1.F ontBold
        .SelItalic = CommonDialog1.F ontItalic
        .SelStrikeThru = CommonDialog1.F ontStrikeThru
        .SelUnderline = CommonDialog1.F ontUnderline
        End With
        Me!txt1.SetFocu s


        Hope this helps,



        "doncee" <nopsamdbc9814@ nospamswbell.wa ntedwrote in message
        news:Xns9B36E24 DE4C2nopsamdbc9 814nospam@216.1 96.97.131...
        Thank you for your response. Yes, this is just a normal run of the mill
        memo field. I was afraid that it did not support formatting & your
        reply confirmed that. If you wouldn't mind posting a few more sample
        codes for rich text I would appreciate it. Once again, thanks for the
        clarification & reply
        dc
        >
        ARC" <PCESoft@PCESof t.invalidwrote in
        news:ujzIk.3388 $ZP4.2779@nlpi0 67.nbdc.sbc.com :
        >
        >Do you mean that the memo field is an active x rich text control? If
        >the field is just set to memo in the table, it won't support the
        >formatting toolbar. For the rich text custom control, you pretty much
        >have to put your own buttons in there, such as a button for bold,
        >underline, text alignment, a font selection, etc., and have your own
        >code for all buttons. For example, for the microsoft rich text
        >control, the code behind the bold button would be something like:
        >>
        >Me!txt1.SelBol d = Not Me!txt1.SelBold
        >>
        >If this is what you were after, and you need more sample code for
        >other formatting buttons, let me know.
        >>
        >Andy
        >>
        >>
        >"doncee" <nopsamdbc9814@ nospamswbell.wa ntedwrote in message
        >news:Xns9B354E CE412E0nopsamdb c9814nospam@216 .196.97.131...
        >>Trying to add the formatting toolbar to a memo field in '97. I am
        >>able to add the toolbar from the view\toolbar\cu stom menu but as
        soon
        >>as I open the database it becomes grayed out. Hopefully there is a
        >>fairly simple way to overcome this but haven't been able to find it
        >>myself. Any suggestions ???
        >>Thanks
        >>dc
        >>
        >>
        >

        Comment

        Working...