Watermelon vines are massive. They run forever with huge leaves. So not sure of you have room for them plus the cukes and cantaloupes.
As to the tomatoes getting leggy, now you have done the right thing. They will grow now in the sunshine and no more being leggy.