Accueil → WINDEV 23 → How to copy a full popupup menu?
How to copy a full popupup menu?
Débuté par GuenterP, 07 mai 2018 09:09 - 6 réponses
Posté le 07 mai 2018 - 09:09
Hi, is there a way to copy a full popup menue? Like from a window in project A to another one in project B. As I understand it, one can copy menue items only which is quite a nuisance if such a popup menue has two dozens of items ...
Posté le 07 mai 2018 - 09:37
Not that I know of.
I have wished for this on a number of projects but even though it is basically another window there is no 'save as' option available as far as I can see.

You can of course create your own and use OpenPopup() but that is a bit more flaffing about.
Posté le 07 mai 2018 - 11:12
in fact these are my own popup menues and these are opened with OpenPopup(..) indeed. However, there seems to be no way to copy such a menue from A to B. Of course, I can copy each menue item from Popup A to Popup B but not the whole menue or all menue items at once ... I'll suggest this one to PC Soft Tech Support anyway and maybe, we'll get it in version 35 ...
Posté le 07 mai 2018 - 11:32

can't see if in your situation this is helpfull, but you could do this
- pick the window WITH the popupmenu and SaveAs it under a new name
- delete all ocntrols an code from it
- copy/paste all controls and code from your window without the popupmenu
- delete that window and rename the new window to be the current one
Maybe that's less work than creating all popup-items from scratch
Posté le 07 mai 2018 - 12:30
Easy way to copy pop up menu,

1) take a bouton with Description “GUI” tab add the pop up to the “Popup Menu” from the window to copy from

2) copy the button and paste button to window that you would like pop up in.


Posté le 07 mai 2018 - 12:43
Hi DW - uh, oh, that's that easy?! Thanks a lot for your solution!
Posté le 22 mai 2018 - 16:36
This tip is :hot: