Thankyou very much Charles
It works

Brian
[EMAIL PROTECTED]


On Apr 22, 2006, at 5:08 PM, Charles Yeomans wrote:

I have knocked out and uploaded a little example project. It shows how to write a couple of MenuItem subclasses that build a font menu, handle enabling, setting the text font, and checking the appropriate menu item.

<http://www.declaresub.com/Code/FontMenuExample.rbp.zip>

Charles Yeomans


On Apr 22, 2006, at 5:22 PM, Terry Ford wrote:



On Apr 22, 2006, at 3:02 PM, Brian Heibert wrote:


Before bugging the list I tried looking at the example in the language reference (in the help menu)
Dim m as MenuItem
Dim i,n as Integer
n= FontCount-1
FontFontName(0).Text=Font(0)
For i=1 to n
 m= New FontFontName
 m.Text=Font(i)
Next


But I am having trouble getting it to work
I want to have a font menu that changes my edit field's font when a font is selected


There must be some association between the EF's font and the font selected from a menu. Check out EditField.TextFont and EditField.SelTextFont in the LR and see which property applies to your case. The tutorial has some code that may apply to your case.

A StyledText EF will also respond differently than a non- styledtext EF.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to