473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Rich Text Box - Lebans

NB
Hi,
Is it possible to set the default font size and name, etc for the
Leban's Rich Text box. I am using the latest version 1.5 but the
following code does not work (but also produces no errors.)

Dim x As RTF2
Dim fnt As New StdFont

Set x = Me!rchtxtCalendar.Object
With fnt
.Name = "arial"
.Size = 44
.Italic = False
.Bold = False
.Strikethrough = False
.Underline = False
End With

set x.Font = fnt
Thanks
Nigel
Nov 12 '05 #1
3 1946
Sorry, that Prop has not been hooked up yet. I'll add it to the next
release.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"NB" <nb****@aol.com> wrote in message
news:54**************************@posting.google.c om...
Hi,
Is it possible to set the default font size and name, etc for the
Leban's Rich Text box. I am using the latest version 1.5 but the
following code does not work (but also produces no errors.)

Dim x As RTF2
Dim fnt As New StdFont

Set x = Me!rchtxtCalendar.Object
With fnt
.Name = "arial"
.Size = 44
.Italic = False
.Bold = False
.Strikethrough = False
.Underline = False
End With

set x.Font = fnt
Thanks
Nigel


Nov 12 '05 #2
I hooked up the SetFont prop tonight. It now accepts a StdFont object as
the input as per your example. Some more testing is required before
release but I will try to put the new version on my site tomorrow night
or Wed at the latest.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"NB" <nb****@aol.com> wrote in message
news:54**************************@posting.google.c om...
Hi,
Is it possible to set the default font size and name, etc for the
Leban's Rich Text box. I am using the latest version 1.5 but the
following code does not work (but also produces no errors.)

Dim x As RTF2
Dim fnt As New StdFont

Set x = Me!rchtxtCalendar.Object
With fnt
.Name = "arial"
.Size = 44
.Italic = False
.Bold = False
.Strikethrough = False
.Underline = False
End With

set x.Font = fnt
Thanks
Nigel


Nov 12 '05 #3
NB
Thanks for your quick responses. Its a great control.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
1
by: Ted | last post by:
I am trying to return the vertical scroll position of a rich textbox control using Access 2000. It seems to work for the horizontal scroll bar, but not the vertical. Code follows: Option...
4
by: Mel | last post by:
Hi, When you use a RichText box (I'm using Microsoft Control VB 6.0, OLE Class: RichtextCtrl) It is possible to store only the text in the table instead of the rft format? The problem is when...
2
by: Neil | last post by:
Is there an editable RTF textbox control which allows the user to apply bold, italic, etc.? I tried the Microsoft Rich Textbox Control, but there doesn't seem to be a way to allow the user to...
1
by: penguin732901 | last post by:
Has anyone tried this? My application is used by schools that run a dinner and need to typeset journal ads. We've been able to allow setting of font type etc. but would also like to allow...
2
by: tlyczko | last post by:
Hello, I'm experimenting with Stephen Lebans' Rich Text Control for doing RTF data entry into a memo field. I imported the table, form, toobar, and modules from the A2k version into an A2k3...
2
by: penguin732901 | last post by:
Hi Steve, I hope you can help me with this. In Access 97, I'm getting the following error. "The formats that enable you to output data as a Microsoft Excel, rich-text format, MS-DOS text, or...
10
by: Neil | last post by:
Using the MS Rich Textbox Control 6.0 in Access 2000, I need to concatenate several RTB controls into a single RTF file. Sometimes two strings will be side-by-side; other times they need to be...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.