Clone VOWindows in X#

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
ArneOrtlinghaus
Posts: 414
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Clone VOWindows in X#

Post by ArneOrtlinghaus »

Nearly always we create new VO-Windows in VO in the following manner:
- We open the Windows Editor
- We click "Open..."
- We select one of the existing dialog windows of the DLL
- We click "Clone"
- We have a new window with all of our standard settings in a correct manner as we need it (Exact size of tab window, correct settings as inherit from, some controls to copy)

Is there a similar possibility in X#?
Attachments
CloneVOwindows.png
CloneVOwindows.png (70.4 KiB) Viewed 625 times
User avatar
Chris
Posts: 4986
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Clone VOWindows in X#

Post by Chris »

Hi Arne,

There isn't one build in way to do it now, but will add a feature request. For now, there are two ways to do it in alternative ways:

1. Select All and copy/paste all controls from source to destination window
2. Create a new window, close it, then open the .xsfrm files for the source and destination window and again copy/paste the contents (keeping the name of the new window intact of course!)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3784
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Clone VOWindows in X#

Post by wriedmann »

Hi Chris,
please add this feature request also for XIDE (both the VO Window Editor and the Windows Forms Editor).
Currently I'm copying this by hand. In VO, I really newer start with a window from scratch - I start always from a similar one, even if I need only to keep the "OK" and "Cancel" buttons.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4986
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Clone VOWindows in X#

Post by Chris »

Hi Wolfgang,

OK, will do that, too!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3784
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Clone VOWindows in X#

Post by wriedmann »

Thank you very much!
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Meinhard
Posts: 81
Joined: Thu Oct 01, 2015 4:51 pm

Clone VOWindows in X#

Post by Meinhard »

Hi Chris!

Wouldn't it be better to support VS export template mechanism? I tried it but seems not to be working at the moment. This way we could have different kinds of templates without the need to do all this copy & paste stuff.

Regards
Meinhard
User avatar
Chris
Posts: 4986
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Clone VOWindows in X#

Post by Chris »

Hi Wolfgang!

Interesting idea...not sure myself if that's possible for the VOWED, as I have no idea how this feature works, will let Robert give his input on that.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply