popupmenus

popupmenus

Post by Bruce Whit » Sun, 26 Aug 2001 21:35:20



Hi

The word processor I am programming, comprises of two forms; the main form
and the document's window form. My problem is;  how do I write the popupmenu
code in the DocWind form without losing the menu (File, Edit etc) in the
main form.

Any help would be most appreciated.

Thanks

 
 
 

popupmenus

Post by J.C. Gordo » Tue, 28 Aug 2001 11:13:02



Quote:> Hi

> The word processor I am programming, comprises of two forms; the main form
> and the document's window form. My problem is;  how do I write the
popupmenu
> code in the DocWind form without losing the menu (File, Edit etc) in the
> main form.

> Any help would be most appreciated.

> Thanks

not sure what you're asking - you can access the contents of form1 from
form2 by prepending "form1." to the name of the method in form1. for
example, to read textbox1's contents from form2, use form1.textbox1.text

--
bcingu
John
 -----
Brainbench MVP for Programmer/Analyst Aptitude
http://www.brainbench.com

 
 
 

popupmenus

Post by David Wimbu » Thu, 30 Aug 2001 20:13:34


I assume your Main form is an MDI form and DocWind is a child? If so,
I know of two approaches:

1. Duplicate all Main's menus on DocWind and call Main's menu events
in DocWind's menu events. Then you could add the popup menu to
DocWind. It would work but you'd have to keep them in step and
remember to make changes to both forms. This approach is best suited
to when you have several types of child forms, a fair amount of menu
functionality that's common to all forms, and where the different
child types each have a fair amount of specialised menu functionality
that is not common. The best way to copy the menu structure is to open
the two .FRM files in Notepad and just copy and paste it across.

2. Put the popup menu on the Main form and put code in DocWind to
activate it. This approach is best for when there's only one type of
child and they all need the popup menu. The code to activate the popup
looks like this:
Me.PopupMenu Main.mnuPop etc.

From what you say, option 2 sounds like what you want.

 
 
 

1. Help with PopUpMenus

Is there a limit to the PopUpMenu method?  I am trying to create a
PopUpMenu in OPAL that will have all fifty states in a three column
PopUpMenu.  I simply use the AddText command to add each state in the
code itself (avoiding tables).  I get to about Rhode Island before it
cuts off the rest.  I divide the columns with a AddBreak command which
works well but it still cuts it off.

P.S. I'm still using PDoxWin 4.5.  Hopefully this week we will FINALLY
switch to 5.0 and hopefully, by the end of the year, to Delphi.

Thanks

Jordan

2. Online Checkpoints

3. right mouseclick in popupmenus

4. New Freeware! Einstein for Windows95

5. HELP WITH POPUPMENUS

6. How can I control the export wizard in access through VB6

7. Limits on PopUpMenus [Win 5.0]

8. Source code for Sun's rowset implementations