XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

Add option to VS IDE to convert xsfrm to Windows Forms Form

Open RobertvanderHulst opened this issue 2 years ago • 5 comments

Chris, Can you add code to convert a form definition based on a xsfrm to a windows forms form (like you're also doing in VOExporter). I will then add that to the context menu in the solution explorer. The code should accept a xsfrm file name, and also a Form.prg file name. The code should create the Form.Prg and Form.Designer.prg I will hook this up to the context menu of the solution explorer. It is probably a good idea to add a "translation table" that translates the original VOWED type to a fully qualified class name. By adding that table a user can also decide to map a control to a control from for example the DevExpress suite.

RobertvanderHulst avatar Oct 15 '23 09:10 RobertvanderHulst

Maybe also for xsmnu files?

RobertvanderHulst avatar Oct 15 '23 09:10 RobertvanderHulst

Robert, OK, will look into both!

cpyrgas avatar Oct 15 '23 16:10 cpyrgas

Implemented first basic version for windows. There's a new static method

VOWindowEditor.ConvertXsfrmToPrg()

which accepts 3 parameters:

  • xsfrm filename
  • form.prg filename
  • namespace name

cpyrgas avatar Oct 19 '23 17:10 cpyrgas

Hi... One consideration that you could make is to add this functionality using a separate visual studio extension... That way you would have two advantages:

  • You can have a different release cycle for this functionality
  • Users can decide, if they need this functionality or not

Is extension could for example bundle various conversion related functionality (like adding the xporter to the menu) that can be removed, once you are done converting.

VolkmarR avatar Mar 02 '24 12:03 VolkmarR

Implemented in 2.24

RobertvanderHulst avatar Jun 23 '25 11:06 RobertvanderHulst