Modules: formproperties editable in main solution

Hi,

I have a mainsolution with a module linked into it . when I do the following, I can edit the module solution:

  • I run this main solution in Developer
  • In formview, I go to a form that belongs to the module
  • when the module form is shown, I switch to design mode
  • Offcourse, the form will not show in designmode, but the form properties do show
  • If I edit the formproperties of the module form, they are acually changed and stored in the module.

Doesn’t sound like the right behavior to me…

Paul

already fixed in 2.2b2
Designmode is disabled now for modules.

I’ve tested this on beta2: I can still edit formproperties of forms that belong to a module.

Procedure:
start developer
select a solution that has modules
go to a form in formview that belongs to the module
switch to designmode

at that moment, the form doesn’t go to designview (correct) but the formproperties are shown. In the properties tab, I can, for example, attach another method to the onshow event of the form.

I think that should not be possible, right?

Also, when switching to designmode when looking at a form that belongs to a module, the behavior of Developer becomes a bit inconsistent. sometimes, switching back to formview will show the form from the module again, sometimes the last form that belongs to the actual solution you have open displays again. this might need some tweaking?

Paul

how do you switch to design mode?
CTLR-L or the icon in the toolbar are all disabled. So you shouldn’t be able to go to design mode because the action is disabled.

The icon…

I noticed weird behavior with that icon being disabled. didn’t know it should be disabled if viewing a module form, will chech the behavior.

But, I’ve seen the icon disabled in solutions that didn’t have any modules in them, and I’ve been able to switch a module form into designmode, so I guess it doesn’t work flawlessly yet.

Paul

we don’t disable the icon.. We disable the action behind it So also the menu iten is disabled. And because of that the Key combination is also disabled.

johan,

Tested it this morning.:

  • start Developer
  • select a form belonging to a module from the menu with all forms
  • click the Icon to switch to designview.

Immediatly, the formProperties tab is shown and I can edit it.

Paul

PS: would it be possible to get some visual feedback that a form belongs to a module? for example: Another icon in the menu with all forms, and/or "(Module xxxxxxx) in the title?

Servoy Developer
Version R2 2.2b2-build 317
Java version 1.4.2_06-b03 (Windows XP)

aren’t you doing something funky with youre menu plugin??

Because you really shouldn’t be able to click on that icon because it should be disabled. I tested it here with a few systems all working fine.

Very sure about that, because in the solution I opened, I do not use the plugin.

But for the sake of it, I tested it (removed the plugin from the plugin dir) and the result is the same…

In your last post you say the icon should be disabled. You mean the action or the actual Icon?

What I see happening is the Icon to switch modes flickers a couple of time when switching forms, but in the end the Icon stays enabled.

Paul

i have no idea why that happesn. But the action under the icon or the menu item should be disabled. It is disabled at my place and others that i have tested.

Can you do a test with a very very simple solution? that has a very simple module? It should be disabled when you move to that form.

I did a clean install of Servoy and there I cannot reproduce it, while on the environment where I upgrades from 2.1.2 I can… :?

Paul