showFormInDialog and enabled/disabled commands

I have a form open where I have disabled (value=none) the select all command.

I then open a form in a dialog. This form has select all set to default.

Now, because this command was disabled in the first form it still is in the dialog.

Not the right behaviour I guess. Can this be because I work on mac with only one menubar?

i don’t know what you mean with select all command to none
but i have made some other commands like new record and omit record to none. And i showed that form in the formdialog. (and then back to the main form again)

on windows i can’t see the select menu when i have the form dialog open. But the newRecord command didn’t work so it was disabled..

When returning to the form the select menu was ok again (all commands enabled)

I will look if i can reproduce it on the mac. But if the above case is also youre case then it is again that menu(item) disabled/enabled apple problem.

select all is showallrecords :oops:

I guess it is not ‘that same old apple issue’ since I am able to enable/disable the items when navigating between different forms in the normal view.

It is just with dialogs that it doesn’t work like expected.

and yes that is an apple issue
it is the big issue of menu items that don’t update the state (enabled/disabled) if you change from window/dialog..

for example it is possible if you start servoy and when you click to load a solution.. then you switch away directly from servoy (so another window to front that now ‘has’ the menu). And after you know the solution is completely loaded. You go back to servoy.
Then it is possible that the menu’s are still disabled.. because somehow if we do a state change on a menu item that is currently not visible.. then the mac will never see that.. (At least that is what i think)

It does explain your problem. Because when showing the dialog the dialog takes the menu bar if i am not mistaken (this is not the case on windows.. !) then if you go back it is possible thet it just doesn’t see the change when swapping back from the dialog to the main window.

ok, makes sense…