Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 8 Jahren, 4 Monaten
Letzter Beitrag:
vor 8 Jahren, 4 Monaten
Beteiligte Autoren:
Jimbo, Louis Verbraak

Popup-menues - some questions

Startbeitrag von Jimbo am 15.08.2009 06:53


Hi friends,

I did a bit of experimenting with popup-menues, maybe some (in this field) more experienced WinDever can shed a ray of light on popup-menues?

- Popup-menues seem to be part of the window from which the popup menu will pop up. Therefore we cannot find them in the project directory. Any control of a single window can make use of the popup menu but not the controls of any other window. Right?

- I assume that there is no such thing like a 'global popup menu' because popups are part of each window!?

- How to copy Popup menues from one window to another? When selecting the popup-menu, I can use the 'copy' item of the context menu. But I cannot see a way to 'insert' the popup menu into a second window. Is there a way? I'm tired of manually duplicating the popup on all windows with tables on them ..

Maybe, any of you can share some findings?

Guenter

Antworten:

Solution to 'copy'

Quote
Jimbo

- How to copy Popup menues from one window to another? When selecting the popup-menu, I can use the 'copy' item of the context menu.


Solution: The context menue's 'copy' item does not copy the popup menu as a whole but it copies only one line of the popup menu - the currently selected line. On the the second window create a new popup menu and insert the copied menu line into it (Paste before / paste after) then delete the useless first line and voilà! the new popup is working!


von Jimbo - am 15.08.2009 07:07
Hello Guenter,

You can create a template window with only a popup-menu in it. In your windows you can use this template window. In the initialization-code of the control/window you can use something like:

MySelf..PopupMenu+="TEMPLATE_PopupMenu"

HTH.

von Louis Verbraak - am 15.08.2009 09:35
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.