473,434 Members | 1,521 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,434 software developers and data experts.

Listbox Popup Menu

I'm creating a shortcut menu to popup over my richtext box. Its a form
with a listbox of menu items with associated richtext activex (rtf)
editing commands. I found a way to transfer a value from the popup
menu to the form, but now I have one more step to take. The value
being transferred is a public function from a module. I need to find a
way to execute the function to edit the text in the richtext field.
Download the test database from
http://www.access-programmers.co.uk/...achmentid=5345
and please let me how to code it to work.

Thanks,
PC
Nov 12 '05 #1
2 5821
On 23 Apr 2004 05:26:05 -0700, pc*****@SoftHome.net (PC User) wrote:

Check out the Eval function in the help file:
Msgbox Eval(MyFunction(a,b))

-Tom.
I'm creating a shortcut menu to popup over my richtext box. Its a form
with a listbox of menu items with associated richtext activex (rtf)
editing commands. I found a way to transfer a value from the popup
menu to the form, but now I have one more step to take. The value
being transferred is a public function from a module. I need to find a
way to execute the function to edit the text in the richtext field.
Download the test database from
http://www.access-programmers.co.uk/...achmentid=5345
and please let me how to code it to work.

Thanks,
PC


Nov 12 '05 #2
You're going to a lot of trouble to create a non standard user interface
for the RTF control. Why not use a standard Access/Office ToolBar or
Popup Menu?
For a sample ToolBar see the RTF control on my site. Also my control has
a built in Popup Menu for editing commands if you do not want to use a
TollBar.
http://www.lebans.com/richtext.htm

Production Release RTF2 1.5 February 27, 2004 RichText ActiveX

Version 1.5

This release adds several new props and methods, most notably support
for the Selxxx props exposed by the MS RTF control. Added SelColor and
SelBackColor methods to allow for programmatic control of the currently
selected Text colors. I am having continued problems with persistence of
the BackColor property so I have removed persistence from this prop. You
will have to set the BackGround property at runtime if you want a color
other than the default White Bakcground.

Here is the full installation package of the RTF2 Active control,
version 1.5: RichTextActiveXonly.zip

RTF2 control is an ActiveX RTF solution written in VC++. The RTF2
control is a complete editing/printing solution for Access 97 or higher.
Autosizing of the RTF2 control is supported for A2K or higher. This is a
full automatic install package. This install package contains 3 required
files for the control to function. The OCX itself, RTF2.OCX and the 2 VC
runtime files, Mfc42.Dll and Msvcrt.Dll. AFAIK the two VC runtime files
will already exist on all installs of Windows.

Here are some sample MDB's to demonstrate the control's functionality.

A2KRTF2Sample.zip and A97RTF2Sample.zip You must install the RTF2
ActiveX control before opening either of these sample MDB's. If you have
ActiveX registration problems and you end up reinserting the RTF2
ActiveX control onto the sample Forms/Reports make sure you rename the
control to "RTFControl" in order for the sample autosizing code to work
properly. Both sample MDB's contain a ToolBar named RTF2. Remember to
import this ToolBar into any MDB containing the RTF2 ActiveX control.
Please note that the Toolbars are no longer needed for RTF2 Versions
1.4 and higher as they have a built in context/editing Menu.

Here is a sample MDB from Andre Minhorst from Germany. It demonstrates
how to break up an RTF document into separate paragraphs. AndreRTF.zip
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"PC User" <pc*****@SoftHome.net> wrote in message
news:25**************************@posting.google.c om...
I'm creating a shortcut menu to popup over my richtext box. Its a form
with a listbox of menu items with associated richtext activex (rtf)
editing commands. I found a way to transfer a value from the popup
menu to the form, but now I have one more step to take. The value
being transferred is a public function from a module. I need to find a
way to execute the function to edit the text in the richtext field.
Download the test database from
http://www.access-programmers.co.uk/...attachmentid=5
345 and please let me how to code it to work.

Thanks,
PC


Nov 12 '05 #3

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

Similar topics

2
by: PC User | last post by:
I'm creating a shortcut menu to popup over my richtext box. Its a form with a listbox of menu items with associated richtext activex (rtf) editing commands. I found a way to transfer a value from...
6
by: Dan Bass | last post by:
If you look at explorer, right clicking on a file, first selects the file, then throws up the context menu relating to that selection. With a Windows ListBox control and a simple context menu,...
2
by: ouech | last post by:
hi, i finally tryied with a popup menu but i have a problem. i popup it with TrackMenuPopup and i create it from a ressource. but it doesn't look as it should. i d'ont have the names of the...
3
by: Reb | last post by:
Hi, I am using drop down menu in my pages. In one of my page,there is a listbox control below the menu. This listbox control is hiding the drop down menu items. How can i make the drop down...
2
by: Rosanne | last post by:
I have a menu written in javascript. I include that menu on an asp page. The aspx page contains both a listbox and a datagrid. There i one drop down menu that overlaps the place where the...
2
by: SamSpade | last post by:
I use to get popup events when I checked out the menu coding. That was a while ago. Something I did in the interim must have suppressed those events because I just noticed I don't get them any...
9
by: john | last post by:
In Paradox I was able to create popup menu's in which some of the items had popup menu's themselves. I've looked for threads on popup menu's and access but I can't find how to make a simple popup...
0
devonknows
by: devonknows | last post by:
Afternoon all, i was wondering if you could help me with a slight problem, well not so much of a problem an annoyance, i have a listbox control, now its populated heavily with all sorts of data from...
3
by: RamiH | last post by:
Hi, I am using a listbox to show data from a certain table, i want the user, after the listbox is filled, to be able to sort the data according to the column of his choice. I could sort the table...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.