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?
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.
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.
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.
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)
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.