You may add a new module to an existing module, but how may I aggregate an already existing module to a new one?
Dragging don't seem to work.
Copy and paste of multiple items is a bit tricky in Xojo.
@Beatrix W you have a blue and not a grey background
???? what do you mean
I see that if the module I want to copy is empty then I'm able to add it to an already existing module, but if it has something defined (like a property) it refuses to be inserted.
I tried to inserting an empty module and then copy the items from my module one by one ( methods, properties...) but then when Analize project I get the error:
SQLModules contains MainSql, but this is not supported.
I do not know how to get the blue background I never saw it before. and I'm able to copy items, classes and modules from one project to another...
But I make the following:
Create a new module: module1
Select the module1, add a new module: OK, module2 is in module1
UnSelect all, create new module: module3 is create.
Drag module3 to modules inside module1: ok
UnSelect all create new module: module4
add a property to module4: ID as integer (for example)
then you cannot drag the module4 inside the module anymore
Yes Beatrix you're right, as I've never changed this preference and as default the difference is from light to less dark gay I did be aware of the difference. In either case I'm able to copy and paste items from to objects.
Either way I cannot copy or drag an existing module (with items) inside another one. As it was a just a cleaning purpose I'll create a folder and put those In/Out modules inside.
It is blue by default in macOS. Linux and Windows: I forgot.
@Tim S A good explanation of the actual difference between and the purposes of the "lightly selected" and "strongly selected" states of an item in the navigation pane would be favourite.
Grey: in code edition mode
Blue *: Object is selected.
* Or any color you set the selection color to. Some people change that color from another to some fancy color.
Why is it important ? You may be able to copy in Grey mode, but in Blue mode, you copy and paste the whole selection(s), not just the selected word(s).
Make some tries.
@Emile S It is blue by default in macOS. Linux and Windows: I forgot.
Grey: in code edition mode
Grey appears to be not just for code editing mode. It seems to be for editing anything. I selected a control in the navigation pane: blue. I then click on the control itself: grey.
Whatever works for you
Here, if the Event is grey and no code is selected, using Copy do nothing.
Of course, If you are searching on the menus or ContextualMenu, your experience may vary.
In Code Editor, if you select all and copy (while in Grey mode), you copy the Code.
If you are in Blue mode, you get the Event Name and parameter(s) / and
End <something> at the bottom.
But who am I to write those ?
at last this have two videos included:
@Enric H The original question was: It's possible to copy a module (not empty) INTO another module?
And the answer is yes: use two clicks and Copy.