dbTalk Databases Forums  

Fomatting toolbar

comp.databases.ms-access comp.databases.ms-access


Discuss Fomatting toolbar in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
doncee
 
Posts: n/a

Default Fomatting toolbar - 10-12-2008 , 07:44 AM






Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom 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

Reply With Quote
  #2  
Old   
ARC
 
Posts: n/a

Default Re: Fomatting toolbar - 10-12-2008 , 10:32 PM






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 (AT) nospamswbell (DOT) wanted> wrote

Quote:
Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom 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


Reply With Quote
  #3  
Old   
doncee
 
Posts: n/a

Default Re: Fomatting toolbar - 10-13-2008 , 01:23 AM



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 (AT) PCESoft (DOT) invalid> wrote in
news:ujzIk.3388$ZP4.2779 (AT) nlpi067 (DOT) nbdc.sbc.com:

Quote:
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 (AT) nospamswbell (DOT) wanted> wrote in message
news:Xns9B354ECE412E0nopsamdbc9814nospam (AT) 216 (DOT) 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\custom 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




Reply With Quote
  #4  
Old   
ARC
 
Posts: n/a

Default Re: Fomatting toolbar - 10-13-2008 , 08:24 AM



You're welcome.

'Italics:
Me!txt1.SelItalic = Not Me!txt1.SelItalic

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

'underline
Me!txt1.SelUnderline = Not Me!txt1.SelUnderline

'font
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.ShowFont
With Me!txt1
.SelFontName = CommonDialog1.FontName
.SelFontSize = CommonDialog1.FontSize
.SelBold = CommonDialog1.FontBold
.SelItalic = CommonDialog1.FontItalic
.SelStrikeThru = CommonDialog1.FontStrikeThru
.SelUnderline = CommonDialog1.FontUnderline
End With
Me!txt1.SetFocus


Hope this helps,



"doncee" <nopsamdbc9814 (AT) nospamswbell (DOT) wanted> wrote

Quote:
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 (AT) PCESoft (DOT) invalid> wrote in
news:ujzIk.3388$ZP4.2779 (AT) nlpi067 (DOT) 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 (AT) nospamswbell (DOT) wanted> wrote in message
news:Xns9B354ECE412E0nopsamdbc9814nospam (AT) 216 (DOT) 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\custom 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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.