Use style from Parent form

Scenario:

  • You have a module with some forms designed to be used in tabpanels.
  • These forms are used in several projects using different styles.

It would be nice to set the forms in the module to use the style of the parent form. This way they would automatically pick up the right style.

+1 to this very good proposition

You can control the style of a module with some code in the startup method of the main solution but sometimes it doesn’t work.
Try something like this:

// Overrides the style of the module with the master style
application.overrideStyle('sintpro_mod_style', 'sintpro_master_style')

Let me know if it works for you.

ngervasi:

// Overrides the style of the module with the master style

application.overrideStyle(‘sintpro_mod_style’, ‘sintpro_master_style’)

That will do the job!

Thanks Nicola.